The three prescription-only medicines used to treat constipation are lactulose (Enulose, Kristalose and generic), linaclotide (Linzess) and lubiprostone (Amitiza). Amitiza and Linzess are relatively new drugs that cause the cells that line the intestines to secrete chloride, sodium and water to help soften stools.