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 fetch a field value in repeatable panel or table row?

Avatar

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
johnh86027037
Level 2

30-09-2019

We need a solution for an adaptive form - NOT a 'lifecycle' form...

We have a few tables that allow for the rows to be added (addInstance) and removed (removeInstance).  This all works.

What I want to do - is to also fetch/display/null the value of a certain filed within a specific instance of a repeatable row. 

For example

  • Row1[1].textfield.value=null;

or

  • alert(Row1[1].textfield.value);

Nothing I have tried seems to work - for instance, I have tried:

  • Row1.instanceManager.instances[1].textfield.value
  • guideBridge.resolveNodes("Row1[" + instanceCounter + "].tableItem11").value

Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

30-09-2019

Try this:

alert(panel1393766227897.instanceManager.instances[panel1393766227897.instanceIndex].textbox_0.value);

Where  panel1393766227897 is your repeatable panel and textbox_0 is the textbox.

Thanks,

Mayank

Answers (6)

Answers (6)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

30-09-2019

Download and Check the sample from below link and let me know:

Adobe Document Cloud

Avatar

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
johnh86027037
Level 2

30-09-2019

This worked.  Loving it.

~Thanks

Avatar

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
johnh86027037
Level 2

30-09-2019

I am going to need to study GuideBridge(s) more.  Mayank's solution works for me - but the GuideBridge looks like something I may need in the future.

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

445 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

445 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

30-09-2019

Using the guide bridge API resolveNode get hold of the repeatable panel object

from that panel object get the instanceManager

from the instance manager get the array of instances

and from that array get the value of your specific field

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

445 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

445 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

30-09-2019

Please refer to guide bridge api

Adaptive Forms Class: GuideBridge

Avatar

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
johnh86027037
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
johnh86027037
Level 2

30-09-2019

Sorry. that didn't work either.

Tried:

  • alert(Row1.instanceManager.instances[Row1.instanceIndex].tbcFirstNm[0].value);
  • alert(Row1.instanceManager.instances[0].tbcFirstNm[0].value);
  • alert(Row1.instanceManager.instances[0].tbcFirstNm);