enable and disable a group of check box by checked and unchecked a check box

Avatar

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Ali_Haider_shib
Level 1

27-01-2016

hi,

i have a livecycle form. i want to enable and disable a group of check box by checked and unchecked a check box. can u pls help me?

thanks

Ali

Accepted Solutions (1)

Accepted Solutions (1)

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

27-01-2016

Please ensure to follow the steps specified...

Create a script object to create the function toggleAccess

LiveCycle ES2 * Adobe LiveCycle Designer ES2 (How to create a script object)

LiveCycle ES2 * Adobe LiveCycle Designer ES2 (How to reference a script object in PDF forms)

You can download the form you sent me here with the script object implemented as explained :

936968a098afc8ab320334a2c0ab4c73.pdf - Google Drive

Answers (5)

Answers (5)

Avatar

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Ali_Haider_shib
Level 1

27-01-2016

thanks a lot.

Avatar

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Ali_Haider_shib
Level 1

27-01-2016

hi,

i have tried second one but it is not working. can u pls see attached link file and let me know where is problem?

Dropbox - Untitled1.pdf

thanks

Ali

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

27-01-2016

To do this, you need a script object, the script object will hold a function which you can call from anywhere in the form.

The function needs 2 parameters :

1. The subform / table, the object that will hold all the fields that you want to change active / inactive

2. True or false, true if you want to set the fields inactive, false if you want to set the fields active

After creating the script object, insert this function inside of it, in my case the script object's name is objAccess

in the checkbox event change, you can enter this script :

Hope this will help

Avatar

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Ali_Haider_shib
Level 1

27-01-2016

hi,

thanks a lot for ur response. i want active and inactive a group oc check box or a table by check and unchecked same chack box. i mean if i clicked group of check box or table will inactive/off and if unclicked  then active check box or table. as example there is a check box called "checkbox1" and there is a table clalled "table". i want inactive and active by check and unchecked. pls give me a java code.

thanks

Ali

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

27-01-2016

Hi there,

you can enable or disable a field with the property access.

If you want to disable a field, use

If you want to enable a field, use