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

Change event of dropdown not working in new instance.

Avatar

Avatar
Validate 1
Level 2
Natalieann75
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Natalieann75
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Natalieann75
Level 2

04-07-2019

Hello

I have a table which contains a dropdown, and on the change event of the dropdown it shows and hides various sub forms depending on the selection.  The row in which this dropdown lives is repeatable.  The first dropdown does as its told, but the second and subsequent ones do not - and I know it is because I am not referencing it correctly and it is looking at the first instance only.  I have honestly scoured for hours on this one, but I get confused between [*], _subform, [0], resolveNodes, resolveNode etc.

Is anyone able to explain to me in simple terms how to reference the dropdown / subforms so it executes the change event in all instances?   Or how to reference a repeating object in general?

Thank you so much,

Nat

View Entire Topic

Avatar

Avatar
Validate 1
Level 2
Natalieann75
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Natalieann75
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Natalieann75
Level 2

05-07-2019

I think this whole referencing business is going to kill me.  I  have to travel interstate next week and I have downloaded a truckload of You Tube clips on it to watch on the plane try and wrap my brain around it!! 

I have the reference of the subforms ok -  what I can't manage is to reference the repeats...and I did try the [*] but I have probably put it in the wrong spot.  This is what I have:

Repeating row that contains the dropdown is:    Main.tblPartV.Row1

The dropdown has selections (will only name a couple) "Company"  "Individual"   "Joint"

sfAccount contains tblCompany, tblIndividual and tblJoint tables that should turn on and off as per the selection from the dropdown

So my "add row" button not only adds a row to tblPartV (and subsequently another dropdown) it (should) also add a separate instance of either Individual, Joint or Company.  The instances add fine, but it the dd doesn't work because my change event just has:

if ($.boundItem(xfa.event.newText) == Company) {

xfa.resolveNode("sfAccount.tblCompany").presence = visible;

xfa.resolveNode("sfAccount.tblIndividual").presence = hidden;

etc.

it doesn't know where the repeats are - is that just putting the [*] at the end of say, tblCompany[*]?

Sorry I know I am thick - I really will set aside my whole trip to try and get this straight!!!!