Avatar

Level 10

Hi,

Have a look at the dropdown:

  1. Make sure that the display items match the values you are using in the switch statement (or make sure that the values in the script match the display list items: Object > Field tab).
  2. Then in the Object > Binding tab make sure that "specify values" is NOT ticked.
  3. Save the form as a Dynamic XML form.

The script looks okay, make sure that the object references are correct.

When previewing the form press Control+J to open the javascript console. When you interact with the form any errors will show up in the console, indicating where the problem may be.

Hope that helps,

Niall