Good Day;
I am developing a form and one of the things I am trying to do is get a full subform to repeat if the user has to add more items.
The subform has 1 table and 1 row. If the user selects from a status dropdown anything but “green” a text box becomes visible and the user must add details.
I have placed a button on a separate subform if the user wants to (needs to) add 2 or more projects.
I tried using the following and I get the standard “general” error.
psl_list_subform.instanceManager.addInstance(1);
Am I going about this correctly or am I way out in left field.
Thanks all
Chomp
Solved! Go to Solution.
Views
Replies
Total Likes
Is the Reapeat Row set for Psl_list_subform? Do you have a max value set for that subform? If you are still having issues can you email the form to LiveCycle8@gmail.com and I will have a look.
paul
Views
Replies
Total Likes
Is there an instance of psl_list_subform available on the form when you execute this command? If not then that is your issue ...To be able to address an object it has to exist.....if it does not then you must use the undersore technique to call the instanceManager. This basically says that although the subform does not exist (it is not part of the layout subform) it does exist in the template dom so it needs to be addressed in a different way. So your expression woudl be _psl_list_subform.addInstance(1).
Paul
Views
Replies
Total Likes
Thanks Paul.
It did not seem to work.
I have tried both ways _psl_list_subform.addInstance(1). And
Psl_list_subform.instanceManager.addInstance(1);
And I am getting the same error.
GeneralError: Operation failed.
The element [max] has violated its allowable number of occurrences.
I have Repeat row for each data item checked off. This field is grayed out for the psl_list_subform.
Within the subform I have 1 table with 1 row, a text box . When the user clicks the “add” button I would like the table to repeat along with the textbox below it.
Using the codes above I have tried with the add button inside the psl_list_subform as well as placing the add button outside the psl_list_subform. I still get the same error.
I have a feeling I am either missing something basic or I am going about this all wrong
Thanks again Paul
Views
Replies
Total Likes
Is the Reapeat Row set for Psl_list_subform? Do you have a max value set for that subform? If you are still having issues can you email the form to LiveCycle8@gmail.com and I will have a look.
paul
Views
Replies
Total Likes
Thanks Paul
Sorry for taking so long to get back to you. It appears the "powers that be" want to think about this approach a wee bit... Once they (the powers that be) have determined what they want, I may be asking more questions.
For now I am going to make this question as answered.
Thanks again Paul
Chomp
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies