Hello,
Here's link to my form: https://we.tl/t-HX3piyQgMX
I want to create the form where the value from REFERENCE3 field repeats in SECTION 3 - REFERENCE 3 field. The thing is that when the plus button is pressed the new REFERENCE 3 section comes in as well as SECTION 3 section, so that each reference is connected with each table. (I hope that makes sense).
I had similar problem recently that was solved (https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/autopopulate-repeat-... - link) and I tried to use the same code, just modifying it, but I don't know what I do wrong, because it's not working.
Thanks,
Magda
Solved! Go to Solution.
Views
Replies
Total Likes
The issue I found was that the Data Binding for REFERENCE 3 in Section3 was set to "use global Data". By setting it to "Use name" and with the following script in the Exit event of REFERENCE3 field in Section 1, it seemed to be working
var nIndex = this.parent.index; var sTarget = "form1.Page1.SECTION3["+ nIndex +"].section3FillIn.sectionWrap.ref3"; this.resolveNode(sTarget).rawValue = this.rawValue;
Yes
The issue I found was that the Data Binding for REFERENCE 3 in Section3 was set to "use global Data". By setting it to "Use name" and with the following script in the Exit event of REFERENCE3 field in Section 1, it seemed to be working
var nIndex = this.parent.index; var sTarget = "form1.Page1.SECTION3["+ nIndex +"].section3FillIn.sectionWrap.ref3"; this.resolveNode(sTarget).rawValue = this.rawValue;
Thank you so much. This code is brilliant and it will help me with my other forms.
Thanks,
Magda
Views
Likes
Replies