Select from options and choose order

Hi,

I am setting up a site for a client, and they need to include a customisable (within constraints) form as part of this.

I need to have the editor be able to pick from a pre-defined list of questions, and then choose the order these questions are displayed on the site. I was thinking a multi-select would be the way to go, but I also have the requirement that they should be able to add headings into the order (which should be editable text), so that wouldn’t be suitable.

Does anyone have any thoughts on what might be a good approach for this?

I’d go with a structure field with two fields, one a select to select the question from a predefined set, second one for the heading.

That sounds like a good solution, thanks for the pointer. I think a structure with a heading, and then a multiselect for the questions to be displayed under it, would work well.

As an enhancement, is there any way I could prevent questions being selected multiple times? As the multiselect would have the same options each time.

No, not really. The only option would be a check via a hook on save that then throws an error.