Button to lock all fields

jonnip85

16-12-2018

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

Accepted Solutions (0)

Answers (1)

Answers (1)

MinusZero

16-12-2018

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.