Copy Form but Exclude or Reset Some Fields

I want the Copy button to duplicate a form’s contents but reset some integer fields on the form to “0” when loaded. I’ve tried the following in OnScriptInit and OnLoad, to no avail:

if (sc_btn_copy) {

{intfield1} = 0;
{intfield2} = 0;
{intfield3} = 0;

//etc

}

I was hoping that would reset those values but it has no effect. Anybody know what I’m missing? Have a clue how to do this?