Just an FYI: ducosate sodium is a stool softener which increases the amount of water absorbed by the stool
Many meds cause constipation. Personally, I prefer to address this via using the more natural approaches mentioned above. Should those approaches fail, I sometimes resort to ducosate sodium, which comes as a small capsule. Ducosate sodium is often used in hospital settings.