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.

Hide field if another is populated

  1. I'm currently having some problems with a form but I dont know if this is possible with Gravity Forms.
    If a field is populated with text can another field be disabled?

    For example: I have two boxes in the form - Youtube URL and Youtube Embed.
    I would like the URL box to be disabled if the embed box has text in it, or the embed box to be disabled if the URL box has text in it.
    They dont even need to be disabled, just hidden if that works better.

    I know this is possible with jquery but I'm not sure how it would work with Gravity Forms.

    Kind Regards,
    Oliver

    Posted 13 years ago on Thursday June 7, 2012 | Permalink
  2. David Peralty

    Hi Oliver, in the conditional logic part of your field, there is an option to hide if value. You could have it be something like hide if value of field contains youtube. Conditional logic can be found in the advanced section of most fields.

    Posted 13 years ago on Thursday June 7, 2012 | Permalink
  3. Thanks for your reply!

    Will this work for a "live" feature, so if it detects typing it will hide the field if they both appear on the same page?

    by live I mean on the lines of the password strength indicator changing as the password is typed.

    Kind Regards,
    Oliver

    Posted 13 years ago on Friday June 8, 2012 | Permalink
  4. Does anyone know if this is possible?

    Posted 13 years ago on Wednesday June 13, 2012 | Permalink
  5. Did you fix it?

    If not, you could use a drop down with "Do you want to use:" and have Youtube URL and Youtube Embed to be the selections. Then only show the relevant field for input using conditional logic.

    Posted 13 years ago on Saturday October 13, 2012 | Permalink