Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Button to lock all fields

jonnip85
Level 1
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
MinusZero
Correct answer by
Level 7
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
MinusZero
Correct answer by
Level 7
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