Gravity Forms: Clear Default Radio Button Option and Preserve Conditional Logic

While creating a complex four page form using Gravity Forms I ran into a problem. For testing purposes I had set a radio button option as the default selection. My problem arose when I needed to clear that default selection and add additional options. Clicking on the set default radio button a second time does not remove the selection. This is due to the inherent functionality of a radio button: one selection from a set. As opposed to a series of checkboxes: select as many options as you would like.

The simple solution, in most cases, would be to delete the radio button option and add it back in without setting the default. The problem with solution in my case is that there are 28 fields set further on in the form which make use of conditional logic for this field. By removing it, all of those options would need to be set back up.

Solution to Preserve Conditional Logic:
After a few moments of searching in Google and not finding an answer to my specific problem, I had an idea. I added a new option to the radio button set, named it Test, set it as the new default option, and then removed it from the list. This left no default selected and preserved my conditional logic.

gravity-forms-default-radio-button-deselect

It is my hope that by writing and sharing this brief blog post I may be able to help others who may find themselves in a similar situation. Remember, we’re all in this together!

If you found this information useful, consider leaving a brief comment below letting me know.

Good luck in your ventures!

About Rick D'Haene

Rick D'Haene is a web developer, specializing in WordPress, with a degree in graphic and website design. Rick has extensive knowledge of internet marketing and organic search engine optimization (SEO). He and his lovely wife Melissa reside in Bellingham, Washington, and have a few fun pets to keep them company.

Find me here: Twitter /Facebook /Google+ /

12 comments

  • DarshakReply

    🙂 thank you rick.. it’s working fine.. you solved my problem..

  • DebworkReply

    Your simple elegant solution to clearing Gravity form radio button is beautiful – thank you so much!

  • MigsReply

    This fooled me until I found this solution, and it’s so obvious :-/

    Incidentally, you don’t even need to name the new field, just create it, make it default and delete it.

  • MikeReply

    Great suggestion and worked a treat. Why didn’t I think of that?:)

  • SheldonReply

    You genius, years later and this trick is still required and still working!

  • salparadiReply

    Thank you… crazy that they don’t have an option to do this.

Leave a comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.