- estaylorcoAsked on December 09, 2012 at 06:57 AM
On my Contact Us Form, I have the following scenario:
1) If Type of inquiry is blank or equal to "General inquiry" or "Website feedback," all fields below the Message field should be hidden;
2) If Type of inquiry is equal to "Request for estimate," all fields below the Message field except Bid documents user name and Bid documents password should reveal, and the question asking if user name and/or password are required should be set to the default of "No" (we'll call this the "Yes/No question");
3) If the user chooses "Yes" to indicate that a user name and/or password ARE required, then the Bid documents user name and Bid documents password fields should reveal;
4) if the user subsequently chooses "No" to indicate that a user name and/or password ARE NOT required, then the Bid documents user name and Bid documents password fields should hide.
Here's what's happening:
Type of inquiry starts out blank, as it should, and all fields below the Message field are hidden. The user chooses "Request for estimate," and not only does the Yes/No question reveal, but so do the Bid documents user name and Bid documents password fields. Only the Yes/No question should reveal with a default of "No", and that default value should keep the user name and password fields hidden.
It's almost as if the condition triggered by the Type of inquiry field isn't respecting the default value on the Yes/No question. In fact, if I then click on "No"--which is already [apparently] selected--I get the desired behavior. The "No" seems not to really be selected.
I have reset the form to a known good at this point, but do you have any pointers to offer?
Thank you.Page URL:
- JotForm SupportjonathanAnswered on December 09, 2012 at 07:48 AM
Please test this form http://www.jotformpro.com/form/23432795989977
Provide us feedback if the dropdown logic condition is what you have in mind.
I cloned your form and remove most of the conditions, then created 2 conditions to cover the condition rules you stated.
I added a collapse field on the form and then followed this guide :
You can also clone my test form to see how I created the condition logic. (use this guide to clone)
Please inform us if you have further inquiry.
- estaylorcoAnswered on December 09, 2012 at 07:59 AM
Wow! What a great answer! I guessed I missed the meaning of "visibility" concerning section collapsers. I thought it was referring to the fields underneath, not the graphic itself.
Your approach certainly simplies matters.
Also, I really like that clone-from-the-web feature. I've never used that before, either.
- JotForm SupportjonathanAnswered on December 09, 2012 at 08:18 AM
You're quite welcome Eric. Feel free to contact us anytime should you have any other inquiry.
- estaylorcoAnswered on December 09, 2012 at 08:26 AM
Oops! I implemented your suggestion in the actual Contact Us Form, and everything is fine until the following occurs:
User selects "Request for estimate", then answers "Yes" to the question asking him if a user name and/or password is necessary (so that now Collapser1 and Collapser2 are both open). Then, the user decides to choose "Website feedback" or "General inquiry" in the Type of inquiry field up above. When he does this, Collapser1 closes, but Collapser2 is left open. Adding a second action to the HIDE logic to hide both Collapser1 and Collapser2 actually returns me to the problem I had before: Then choosing "Request for estimate" revelas both Collapser1 and Collapser2.
- JotForm SupportjonathanAnswered on December 09, 2012 at 08:51 AM
This is a normal behaviour for web pagegs (referring to Yes/No radio option) -- the session state is simply not cleared/refreshed using the show/hide process alone.
The session value is actually still there.. just shown or hidden alternately.
As for the current form, without using any script -- can we just remove the option Yes/No? And simply include the username/password in the collapse 1 (if type of inquiry is Request for Estimate)
The form user then just leave both usernam/password empty if they don't have anything for it. (fill-in if they have)
Will await for your feedback about it.
- pinoytechAnswered on December 09, 2012 at 09:04 AM
In addition, can you please take a look at this cloned form of yours if this is what you want to achieved?
- estaylorcoAnswered on December 09, 2012 at 09:17 AM
I would say no, that's not what I'm after. Many times we receive links to bid documents, but a user name and/or password are not necessary.
The reason for the radio control is this: I don't let the user name and password travel through email in the notification emails or in the autoresponder emails since they travel clear text. But, in the notification emails (the ones we receive internal), I do include a link to the public Submissions page. My users will know to go there because the radio control comes through with "Yes".
Without the radio control, they wouldn't know to look at the public Submission page.
Perhaps a Clear on Hide feature and a Default on Reveal feature for sections?
Thanks for all of your help.
- JotForm SupportjonathanAnswered on December 09, 2012 at 09:17 AM
Please test again the form http://www.jotformpro.com/form/23432795989977 .
I added a new rule : If type of inquiry is Request Estimate and Username/password is Yes.
Inform us if this work.
- estaylorcoAnswered on December 09, 2012 at 11:46 AM
Yes, that does it! I'll have to study how you did that. And I'm O.K. with user name and password fields re-showing if they re-change their mind and decide on a "Request for estimate"...yet again.
Thank you again!