Hi,
i am trying to add subform using instanceManger.addInstance(true); on a button click event. But subform/instance is not getting added.
I have created a POC sample and attaching an screenshot. Please let me knwo the issue why i am not able to add subform.
regards
Sunil
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Sunil,
Due to some reasons i'm not able to mail you your form. But, see the solution below:
1) Set the "Subform1" binding property as : "Repaeat Subform For Each Data Item".
This would solve your problem.
Also, you need to set your Page1 to flow content. If not, when you add more instances your instances will go beyond the submit button without moving the button down.
Thanks,
VJ
Views
Replies
Total Likes
Hi Sunil,
You will have to add the following on the click event of the button (not on the click event of the text field).
form1....(remaining path of subform).instanceManager.addInstance(true);
Thanks,
VJ
Views
Replies
Total Likes
sorry for attaching wrong screenshot..
but yes i did as you described above but still there is not achievement. I am still having same issue, not able to add instance of the subforms.
Regards
Sunil
Views
Replies
Total Likes
Hi SG,
I think the code you have written is correct.
I suspect that the subforms "Topsubform" and "Subform1" are not set to flow content.
However, if you dont have any problem pls mail me your form to the id kvdvijaykumar@gmail.com
Thanks,
VJ
Views
Replies
Total Likes
Thanks Vijay.. I mailed you the form on your id. Thanks for helping me .
Regards
Sunil
Views
Replies
Total Likes
Hi Sunil,
Due to some reasons i'm not able to mail you your form. But, see the solution below:
1) Set the "Subform1" binding property as : "Repaeat Subform For Each Data Item".
This would solve your problem.
Also, you need to set your Page1 to flow content. If not, when you add more instances your instances will go beyond the submit button without moving the button down.
Thanks,
VJ
Views
Replies
Total Likes
VJ,
thanks alot.. now its working fine. thax
Views
Replies
Total Likes