Avatar

Level 2

Thanks paul for the help.

Can you also tell me how to reset field values if we have multiple instance of the subform.

I tried doing that but whenever I edit the code it flags run time error and my form becomes zero byte and I have to start again from scratch.

Since you have the form with you. I can explain the problem.

The problem is that when I repeat my form fragment, fields like service window class name, form name, form code, LC URL, and all other fields of that section get reset only for first occurrence not on every instance.

To get the "resetData" code working on every instance what should I do..?

I am relatively new to the technology so I would really appreciate if you can guide me.

My form has dependency on fields like form type(Main Form) and form already exists(Yes/No) fields.

If form is a main form few subforms appear and if it main form all the forms appear.

So to have the combination of form exists-yes , form type= main form

Form Exists : Yes Yes No No

Form Type : Main form Subform Main form Sub form

These vertical combinations have various fields dependency.

And I am not able to reset the data in other occurrence of form.

I can reset data only on first occurrence.