Hey there am having problem implenting the function that enables one to show and hide a form element
I have a registration form on my site, when the dropdown for state is selected I want a hidden dropdown of surbubs and a text field for address to become visible
The dropdown for surbubs should hold different content depending on the state selected
hi jmaker thanks for your reply, was thinking no one was gonna help me out... anyways here is an attachment of the form
you would notice that i have already started the scripting process.. but its not working, i want a situation when users select state from the dropdown the suburb and unit are made visible... it shows a different suburb when different states are selected...
would appreciate if could look at my script and help me tweak it
Do you mean a separate set of elements to input for every dropdown?
Why? Just copy the user input to an array for the element position you wish to save.
Would save a whole lot of coding and debugging.
If you still want to do it your way, it is possible, but it will be a bit of work.
Ok U̶̲̥̅̊ know what? I just need two items in the dropdown to display different form elements when clicked, I just need to see a guid then I will do the rest
yes but it is to display different form elements, for instance when i select Abuja Fct it should display a text field and when i select zamfara it should make that of abuja fct not visible and make that of zamfara visible....
that's just what i need.. if you can help me do just this two i would follow your steps and do the rest, if feel it has to do with a conditional statement 'if else if', but i don't know how to go about it.
yes but it is to display different form elements, for instance when i select Abuja Fct it should display a text field and when i select zamfara it should make that of abuja fct not visible and make that of zamfara visible....
that's just what i need.. if you can help me do just this two i would follow your steps and do the rest, if feel it has to do with a conditional statement 'if else if', but i don't know how to go about it.
thanks am very great full for all your assistance
I'm not sure I understand your problem.
My script does just what you asked about showing and hiding the other opened elements.
It does contain only two selections, but you should be able to expand on that bit.
Show/describe/picture exactly what you want to be different.
Bookmarks