Skip to main content
Participant
May 1, 2020
Question

Make radio button affect tab order

  • May 1, 2020
  • 1 reply
  • 948 views

If a user clicks on the "Yes" radio button they should jump to one field.  If they click on the "No" button they should jump to another field.  How can I do this?  Thanks.

This topic has been closed for replies.

1 reply

JR Boulay
Community Expert
Community Expert
May 1, 2020

Select all radiobuttons, go to Properties : Actions : Mouse up : Run a JavaScript

and paste this script after editing target fields names

 

if (event.target.value != "Off") {
if (event.target.value == "Yes") {this.getField("FIELD1").setFocus();}
else if (event.target.value == "No") {this.getField("FIELD2").setFocus();}
}

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
May 1, 2020

You can remove the first condition and it will still work exactly the same.

Participant
May 11, 2020

You mean

 

if (event.target.value != "Off") 

 

right?