Set value to hidden field on web

hi,

I have Edit button on the form and edit field on the form. Edit button has formula :

         @command([editdocument]);

         @setfield("edit";"1");

Edit Field has “0” Default Value. Now when I click on the edit button it does not change the edit field value to “1”. How can I do that?

Thanks

Subject: RE: Set value to hidden field on web

In form Properties 2nd tab (Default) , enable the following option “Generate HTML For All Fields”… It should work.

Subject: RE: Set value to hidden field on web

I already selected but nothing happens.