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 get the index of a check box within a repeatable subform

Avatar

Avatar
Level 1
mihirag80025980
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mihirag80025980
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
mihirag80025980
Level 1

18-04-2017

Hi,

I'm making a livecycle form which consists several subforms named "person1", "person2".. like that. Within each person# subform, there is an another subform "task". It is repeatable by clicking a button to 'add instance'. There is a checkbox within "task" subform.

My problem: I need to add an "if" condition depends on the status of that check box.

                if (xfa.resolveNode("task["+ i +"].CheckBox1").rawValue == false)

                      {         

                        *********

                        }

I think that " i " value in above code should be the index of relevant "task" instance. But I do not know how to get it. this.parent.index doesn't give the value.

can anyone please help me?

any idea will be valuable for me!

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct Reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct Reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
PDFGuru
Level 2

19-04-2017

I can help you with the form, please send your form at: lcdesignerforms@gmail.com

Also, you can check similiar script at: Adobe PDF Forms: Populate same xml data in multiple fields