I have an existing form that I received help here when creating several months ago. The form has a button to add additional follow up rows on click. When the form is saved and closed out of, the rows disappear upon reopening the form. Any idea as to why this happens and how to fix it? I can send the form if it would help.
Thanks! See attached. When the "Add New Follow-Up Button" is pressed, new
line items are added. When the form is saved and re-opened, any of the
follow-up lines added disappear.
I verified your form..
In the initialize event of the Row1 under all three subforms you have placed the code to hide the Row1.
You need to modify the code to check if there are more than one row then display the Row1 (OR) what ever condition you want to check to identify that the Followup is clicked before saving the PDF..
With the above code, even though you have added the rows before saving, they are all hidden when you reopen.
For your testing comment all the places where you have the following code and test the PDF.
Hope this helps.
Ah thanks! I'm a bit confused by your second paragraph about modifying the
code. The reason I had added the "hidden" line item was so that the
follow-up line item only appears if the "Add Follow-Up" button is clicked.
Is this easy to accomplish or is it advanced coding (I'm not so good at
When you are reopening the PDF, the code should check if the Add button was clicked earlier..
The only way you can find that is by getting the count of the rows for Row1.
So if the count of Row1 is more than 1 then you need to display the Row1 other wise hide the Row1.
You can place the following code in the Initialize event of the Row1, to check the Row1 under Technical subform.
You need to do the similar thing for other sections as well.
Technical.Instance1.Table1.Row1.presence = "visible";
Technical.Instance1.Table1.Row1.presence = "hidden";
Thanks, I appreciate your help, but now when you add additional follow-up
items to a statement other than the first, it just adds follow-ups under the
In my system when I add the folow ups they are getting added to the respective section.. But not sure why you are seeing a different behaviour.
Select the Followup button and under click event, make sure that the path of Row1 is correct. If the path of the Row1 is pointing to First section for all three Followup buttons, please change it to the respective section path.