Skip to main content
stephaniec3100270
Participant
August 23, 2016
Answered

How to unselect a botton when another one is selected? AND....

  • August 23, 2016
  • 2 replies
  • 1153 views

Hello guys!

It is for a Yes or No answer...you cannot have both...

And how to establish some of the forms as Obligatory in case YES is select?

Thanks in advance for your time and attention!

This topic has been closed for replies.
Correct answer gkaiseril

You can use a Radio Buttons or Check Boxes. Radio Buttons usually require at least 2 buttons with the same name but different export values. Once one of the Radio Buttons has been selected it can only be changed by selecting other radio button. Check Boxes can be checked or unchecked. To make Check Boxes work similar to Radio Buttons, give the check boxes the same name but assign different export values to each button.

The values of Radio Buttons or Check Boxes when none of the fields in the group has been selected is "Off".

2 replies

gkaiserilCorrect answer
Inspiring
August 24, 2016

You can use a Radio Buttons or Check Boxes. Radio Buttons usually require at least 2 buttons with the same name but different export values. Once one of the Radio Buttons has been selected it can only be changed by selecting other radio button. Check Boxes can be checked or unchecked. To make Check Boxes work similar to Radio Buttons, give the check boxes the same name but assign different export values to each button.

The values of Radio Buttons or Check Boxes when none of the fields in the group has been selected is "Off".

stephaniec3100270
Participant
August 24, 2016

Thanks!

Another question, how to establish some of the forms as Obligatory in case one of the buttons is select?

JR Boulay
Community Expert
Community Expert
August 24, 2016

Hi.

how to establish some of the forms as Obligatory in case one of the buttons is select?

Place this as a calculation script in the target field.

// calculation script

if (this.getField("MYBUTTON").value != "Off") {

    event.target.readonly = true;

    }

else {

    event.target.readonly = false;

    }

Where "MYBUTTON" is the field name of the button.

Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
August 24, 2016

Use two radio buttons with the same name.

stephaniec3100270
Participant
August 24, 2016

Thanks!