Avatar

Level 2

This is the Javascript on my reset button now:

form1.BodyPage.ResetButton1::click - (JavaScript, client)
xfa.host.messageBox("Are you sure you want to erase ALL data on this form and start over?")
xfa.host.resetData();
xfa.form.remerge();
app.runtimeHighlight = false

I use the app. runtimeHighlight line to clear the red border on required items on a form reset.

Trying your solution but it doesn't seem to work for me.  Did you get this to work?