Forums

Load state not working in form

dryke_chris 14 May, 2014
I have a "if other, please specify" type field that I want hidden on page load. I can get it to appear or disappear on dropdown select event, but when I set "Load state" to "Hidden" (or any other option for that matter), it doesn't make a difference when testing the form. It does not hide the field. Is there an additional setting I need to apply or something? Thanks.
Max_admin 15 May, 2014
Hi Chris,

What's the field type ? and could you please send a link to the form ? I have just tested it here and it works fine!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dryke_chris 15 May, 2014
The form in its current status is located at http://test.forthegrillofit.com/quote. This web site and form are both in unfinished status right now. The fields I am referring to are "Event Type" and "If 'other,' please specify:" and obviously the "if other" field is the one I have set to the "Hidden" load state. You can play with the selection of the "Event Type" field to see it disappears when an option other than "Other" is selected and reappears when you do select that option, so that part works fine. Thank you for your help!
Max_admin 15 May, 2014
This probably happens because your form name has spaces in it, this is wrong, please remove the spaces and test it again!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dryke_chris 15 May, 2014
Thanks Max, it definitely made a difference. When I load the form now (having removed the spaces in the form name setting), the text field is hidden. Is there a way to make the label hidden with it also? It kind of defeats the purpose for me to have the label there with no text field; I need the label gone with it too; otherwise it just causes unneeded user confusion.
dryke_chris 15 May, 2014
To fix this and make the textfield and the label (essentially the row), I've had to load jquery hide() functions on document ready; there's got to be a better way than this to hide the label too with the textfield when the HTML renders.
Max_admin 15 May, 2014
One of the "Load state" choices is "Hide parent" which hides the whole field row and its contents including the label!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dryke_chris 15 May, 2014
Okay, super. I just forgot to try that option after trying all options before I removed the spaces in the form name and got it working. Thanks for your help.
This topic is locked and no more replies can be posted.