Expand my Community achievements bar.

how to trigger the exit event of a subform?

Avatar

Level 1

hi there,

we added some validation logic to a subform's exit event, but we found out that if user leave the subform directly without point to somewhereelse on the form, the cursor will stay inside the subform, then the exit event will not be triggered, they can save the form anyway without any check .

could this been solved?

br.

Jun

2 Replies

Avatar

Level 6

If you are worried about saving the form before the Exit event of the particular subform is triggered here is an idea you can try....

on one of the fields under that particular subform in the preSave event I would add the following JS code........

this.parent.execEvent("exit");

//where parent reference to the subform as parent....you may have to change this per your hierarchy.

Avatar

Level 1

hi,

you just save our pdf registration application!!!!

thank you so much!

br.

jun