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 self-taught web developer, with a degree in website design, who 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+ /

7 comments

Leave a Reply to Debwork (Cancel reply)

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.