Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Aug 23, 2016 Aug 23, 2016

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!

TOPICS
Acrobat SDK and JavaScript
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 24, 2016 Aug 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 gro

...
Translate
Community Expert ,
Aug 24, 2016 Aug 24, 2016

Use two radio buttons with the same name.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 24, 2016 Aug 24, 2016

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 24, 2016 Aug 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".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 24, 2016 Aug 24, 2016

Thanks!

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2016 Aug 24, 2016
LATEST

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines