11-17-2011 05:59 PM
I have a bunch of dropdowns that I want reset if a user flips a radio button to a different value at the beginning of the form.
I have a Yes/No radio button presented at the beginning of the form. When the radio button is clicked, dropdowns apprear with values "pulled" via data retrevial rules. All of that works great. What I can't figure out how to do is reset the dropdowns if the user changes the Yes/No radio button at the top of the form. One of the actions in the AFC Rule list is set a field's value to NULL. I try to reset the dropdown with that action, but it just doesn't seem to do the trick... any ideas?
Thanks!
Charlie
11-17-2011 06:00 PM
Oh yeah... we're on version 9.1
11-17-2011 06:00 PM
Since data retrievals that return null don't re-populate/reset the drop down it's tied to, why not have the other value return a single static data retrieval value, something like "-- Please Select --" or " -- ". This will most likely though require writing your own ISF function, since data retrievals cannot be setup with conditional values. But depending on how your query is setup, you maybe able to setup the "IF/Then" statement in a single query. Hope this helps
11-17-2011 06:00 PM
var myselect=document.getElementById(dropdownfield);
myselect.options.length = 0;
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide