Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Checkboxes become both checked and disabled
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Checkboxes become both checked and disabled

 Post Reply Post Reply
Author
SweDentan View Drop Down
New Member
New Member


Joined: 07 Feb 2018
Points: 1
Post Options Post Options   Quote SweDentan Quote  Post ReplyReply Direct Link To This Post Topic: Checkboxes become both checked and disabled
    Posted: 07 Feb 2018 at 2:27pm

Hi,

 

I have three checkboxes in my pdf-form (using Adobe Acrobat Pro DC) named checkbox1, checkbox2 and checkbox3.

 

I wish the following to happen:

 

If checkbox1 is checked, then:

• checkbox2 and checkbox3 also becomes checked

• but at the same time checkbox 2 and checkbox3 also become disabled (by disabled

I mean not checkable, not clickable).

 

I have this script that does half the job, it disables checkbox 2 and checkbox3 when checkbox1 is checked:

 

// set readonly property based on the value of this field compared to "Off";

this.getField("checkbox2").readonly = (event.target.value != "Off");

this.getField("checkbox3").readonly = (event.target.value != "Off");

 

Though, as described above, I want checkbox2 and checkbox3 to become both checked and disabled at the same time.

 

How would this script look like?

 

Thanks for your help!

 

Greatings,

Dennis (Javascript beginner)

Back to Top
Sponsored Links


Back to Top
Merlin View Drop Down
Member
Member
Avatar

Joined: 03 Jun 2012
Location: 43.95 N / 4.82
Points: 45
Post Options Post Options   Quote Merlin Quote  Post ReplyReply Direct Link To This Post Posted: 14 Feb 2018 at 8:35am
Hi.

Select checkboxes one by one : go to Properties : Option : and set a different "Export value" for each checkbox.


Edited by Merlin - 14 Feb 2018 at 8:36am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.031 seconds.