Clear Form Field values when another field value changes

I have a form Field2 (set as combobox, dynamic and postback =true and <allowedfieldvalues>). The values generated in the dropdown for this field is based on Field1 (which is again a dropdown set as dynamic=true and postback=true).

It works fine, but when the user changes Field1 value, Field2 value is preserved until the dropdown button is clicked which then shows the available values correctly based on the changed Field1 value.

Is there a way where if Field1 value changes, Field2 should gets cleared immediately and shown as blank?

Hi Deepak,

Can you please try the example given in the “dynamic” attribute explanation here : Fields

Hope this helps!

Hi @vedeepak,

I think you can set the values of Field2 using Field2.setValue(…) in the Filed1 script.

Thanks for the quick response. This helps me :blush:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.