We performed 2 randomized , phase 3 trials to evaluate the ability of budesonide rectal foam , formulated to optimize retention and provide uniform delivery of budesonide to the rectum and distal colon , to induce remission in patients with ulcerative proctitis or ulcerative proctosigmoiditis .