Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to check/toggle a checkbox in script

Avatar

Avatar
Level 1
am082905
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
am082905
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
am082905
Level 1

16-03-2016

Simple question that I can't seem to find an answer to. I'm building a PDF form using LiveCycle. I have some radio buttons. When I select a particular radio button, I want it to also select/toggle a checkbox, called "checkbox1" for example. I assume that I need to do this in a script. How do I toggle a PDF form checkbox in Javascript?

form1.Body.RadioButton1::click - (javascript, client)

// Toggle form1.Body.checkbox1

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

17-03-2016

Hi there, usually checkboxes have the value by default of 0 and 1 as strings : "0" & "1"

Some times checkboxes have different value either because you changed it or it was implemented by another program...

To make sure you want to check a checkbox, the code that will work at any time would be the following

but normally if the value of your checbox is 1 and 0, you can just use this :

Avatar

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct Reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct Reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
George_Johnson
Level 4

16-03-2016

Since your question is about an XFA form, I'm moving this to the LiveCycle Designer forum: LiveCycle Designer