Adapt rankideas's setsubmit to work for any number of ideas.