Expand my Community achievements bar.

SOLVED

Button to lock all fields

Avatar

Level 1

hi

previously we just printed out forms to pdf and that locked all the fields. However in OS X we cannot print to PDF.

does anyone Have a JavaScript suggestion to either flatten and save the form. Or to lock all the fields?

thank you

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi,

I would just add a button with the following code:

form1.#subform[0].Button1::click - (JavaScript, client)

form1.access = "protected"; //disable everything
this.presence = "hidden"; //hide this button

Clicking the button will lock all the fields and hide the button. Of course, you cant go back after this without having another button to "open" the form.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

Hi,

I would just add a button with the following code:

form1.#subform[0].Button1::click - (JavaScript, client)

form1.access = "protected"; //disable everything
this.presence = "hidden"; //hide this button

Clicking the button will lock all the fields and hide the button. Of course, you cant go back after this without having another button to "open" the form.