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.

Show Field if Populated with Result

  1. I have integrated Gravity Forms with an API that queries Registrar records. I am populating a hidden field with a value using jQuery and AJAX.

    I want to set up a field that will display when another is populated with text that is written to the field. Basically, if the field is NOT empty.

    Thanks. Love Gravity Forms. Shouting out from New Orleans

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  2. David Peralty

    Can you use conditional logic to do this? If Field1 is not (spacebar) then show the field?

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  3. Hmmmm. You're right about that <spacebar>. That gave me an idea for a work around though.

    I am going to assign a class to the field where it will be HIDDEN. Then, set the onclick event in my jQuery script to change the class on the hidden field to SHOW when they submit the query.

    That should work. I'll let you know in a few minutes. : )

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  4. Easier than I thought. All i needed to do was HIDE the field using jQuery and then onclick SHOW it.

    Works great. See ya later alligators.

    Shouting out from New Orleans!

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  5. David Peralty

    Glad you were able to figure it out. All my best!

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink

This topic has been resolved and has been closed to new replies.