TOPIC:

How to clear a field 3 weeks 2 days ago #245187

  • Topic Author
  • dpetersen
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Thanks: 1
I have a field that is 2 radio buttons (WatchedOnline). If the "yes" button is selected then another field (HowWatched ) that was hidden will now display. This field also has 2 radio buttons. If a button is selected in this HowWatched field but the user goes back to the first field (WatchedOnline) and selects "no" then the 2nd field will hide but the button stays selected. I would like to deselect the radio buttons in the 2nd field if it is hidden.

Here is what I have in the form visibility rules box. I was just making a guess at the code in the 3rd line.

turn on element HowWatched if WatchedOnline is yes
turn off element HowWatched if WatchedOnline is no
if element WatchedOnline is no set HowWatched !empty

Please Log in or Create an account to join the conversation.

How to clear a field 3 weeks 2 days ago #245207

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9789
  • Karma: 167
  • Thanks: 785
Hi,

you got the right idea, please try

if element WatchedOnline is off set HowWatched !empty

From

crosstec.org/en/support/online-documenta...f-conditionally.html

Regards,
Markus
The following user(s) said Thank You: dpetersen

Please Log in or Create an account to join the conversation.

How to clear a field 3 weeks 2 days ago #245213

  • Topic Author
  • dpetersen
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Thanks: 1
What ended up working is the following:

if element HowWatched is off set HowWatched !empty

Thanks for your help. I understand how it works now.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.046 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!