Hi Raj,I'm not sure if I understand you right..Subform 2 and 3 don't need a script in the initialize - Go to Object | Subform | Presence | Hidden (Exclude..)If the user click the add-Button you don't need the If-Condition I would writethis.resolveNode("subform2").presence = "visible"; // OR xfa.res...