Missing Information in Prefill field | Community
Skip to main content
ReluctantProgrammer
Level 4
August 23, 2022

Missing Information in Prefill field

  • August 23, 2022
  • 2 replies
  • 1218 views

I have a form that prefills Payroll Classification title information to a section lower in the form.  Most of the time all items appear but sometimes they don't.  The index number will appear but not the field information. There can be just one title and it doesn't fill; or it can be multiples and maybe a couple different titles will not fill.

 

https://drive.google.com/drive/folders/1yvu5Zql7joLxsOvgwpZokUfNrBZmhEuD?usp=sharing 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Pulkit_Jain_
Adobe Employee
Adobe Employee
August 24, 2022

@reluctantprogrammer 

I have the form handy with me, and it seems to be a complex one to understand based on the problem statement. 

Could you elaborate on the problem statement with an example?

ReluctantProgrammer
Level 4
August 24, 2022

There are two examples....one which explains how it should work and shows it working correctly.  The second example shows an instance of where it did not complete properly.

 

https://drive.google.com/drive/folders/1yvu5Zql7joLxsOvgwpZokUfNrBZmhEuD?usp=sharing 

 

 

Vijay_Katoch
Community Advisor
Community Advisor
August 24, 2022

I have created more than 50 instances but the issue has not been replicated.

Try to replace the script in the change event with the below:

 

xfa.resolveNode("form1.#subform[1].subSummary.tblSummary.summaryRepeatingRow["+ payrollIndex + "].summaryPayrollTitle").rawValue = xfa.event.newText;

 

Rename your second page as Page2, then the script will be as below:

xfa.resolveNode("form1.Page2.subSummary.tblSummary.summaryRepeatingRow["+ payrollIndex + "].summaryPayrollTitle").rawValue = xfa.event.newText;

 

I didn't see any other issue.

 

If the issue still persist, then you can try to put the script in exit event instead of change event

 

script for exit

 

xfa.resolveNode("form1.Page2.subSummary.tblSummary.summaryRepeatingRow["+ payrollIndex + "].summaryPayrollTitle").rawValue = this.rawValue;

 

Thanks

Vijay_Katoch
Community Advisor
Community Advisor
August 24, 2022

Please share the data file if possible.