PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to use any text response as a condition?

  1. Hi,

    I wish to determine whether or not to show a field by whether or not someone entered any text in response to another field. Is this possible and, if so, how should I structure the conditional logic?

    thanks

    Posted 12 years ago on Thursday August 30, 2012 | Permalink
  2. Do you have this form online currently so we can take a look at the two questions you have so far?

    Posted 12 years ago on Friday August 31, 2012 | Permalink
  3. Yes, here is the form: http://www.hollyhouse.org/feedback-therapy/

    I'd like to make presentation of the "Follow Up" question conditional upon a respondent entering something/anything in the "Biggest Frustration" question that precedes it but I'm not sure how to handle that with the conditional settings for "Follow Up".

    While you are looking at the form, can you tell me if there is any way to always justify the tops of the right and left half questions? Sometimes the left half will start above the right half but, as far as I can tell, never vice versa.

    thanks

    Posted 12 years ago on Friday August 31, 2012 | Permalink
  4. I don't think there is a way to have a field displayed conditionally based on input into a text area. You could probably do it with jQuery, but that seems like overkill.

    How about if you asked "Did you experience any frustrations during your session" and had that a yes/no radio button? Then, you reveal two fields on a yes selection: the text area and the follow up radio buttons? You can make both these fields required and they will be required only if the answer to the first question was yes. If it is no, the fields are not shown and they will not be required. Would that work?

    Regarding your layout issue, I will have Rob take a look at that one for you. Thanks.

    Posted 12 years ago on Friday August 31, 2012 | Permalink
  5. See if this gets you a bit closer. Drop this CSS snippet into your theme's stylesheet:

    [css]
    #content .page .gform_wrapper li, #content .page .gform_wrapper form li, #content .post .gform_wrapper li, #content .post .gform_wrapper form li {
    margin: 0 0 15px 0 !important;
    }
    Posted 12 years ago on Friday August 31, 2012 | Permalink
  6. Hi Rob,

    I pasted your code into my theme's style sheet as suggested. I assume it was meant to address the issue I brought up above:

    can you tell me if there is any way to always justify the tops of the right and left half questions? Sometimes the left half will start above the right half but, as far as I can tell, never vice versa.

    If not let me know. If so, it had no affect. Other suggestions? Sorry for mucking up the thread by combining 2 issues in one.

    Posted 12 years ago on Friday August 31, 2012 | Permalink
  7. It definately changed it, the "Satisfaction/Sharing" and "Repeat/Reason" fields are now closer aligned. Can you do me a favor - what does this look like when you view it in the formbuilder preview window. Is it similar or different, etc? If you could take a screenshot that'd be great.

    Posted 12 years ago on Friday August 31, 2012 | Permalink