Hi quicksketch, I think I've come across a bit of a bug in this module; when you re-order an options element, its available options seem to be being wiped.

Steps to reproduce:

  1. Create a webform
  2. With options_element enabled, create a radio select field with two options: "Yes" and "No"
  3. Create another field (it can be anything - a textfield will do)
  4. On the "Webform" > "Form components" tab, change the order of these two elements (either by using tabledrag or the "show row weights" link, and then click "Save"
  5. Go to the form and note that the radio select element contains no options
  6. Go to "Webform" > "Form components" and edit your select options element: note that there are no options.

Hopefully this isn't too difficult to diagnose, but I've not had a chance to dig into the code to be able to suggest a fix I'm afraid.

If there's any more detail you need from me, please shout.

Many thanks in advance,

Alex

Comments

quicksketch’s picture

Thanks for the report. As far as you can tell, this problem only occurs when you have Options Element installed? It seems unrelated that Options Element (which doesn't affect the order of components themselves) would cause a problem on pages where it's not displayed.

alexgreyhead’s picture

I know - it's very odd, but the issue only occurs with options element. Does options element keep track of element ordering at all?

quicksketch’s picture

Status: Active » Closed (duplicate)

This was a bug in Form Builder. It's been fixed in #1772576: Select list options are overridden when moved before saved.