Avatar

Level 1

Not sure what I'm doing wrong; nothing is resetting when the reset button is hit now.

Here's the script for my reset button:

if (xfa.host.messageBox("Do you want to clear all the weekly data from the form?", "Clear Weekly Data",2,2) == "4")

     {    

     ResetButton.resetData(form1);

     }

I put the function in form1.#variables[0].ResetButton - (JavaScript, client) and copied it exactly. I didn't put any of the scripts for the initialize events yets, just the function.

Any idea what I need to change?