Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Lock fields after pop up boxes have been answered

Avatar

Level 2

I have a form which has messageBoxes that pop up when the form is opened, and the user fills out the questions in these boxes, which then uses the data to fill out the form for them.  Is there a way to lock the form once those boxes have been used so they are left with an uneditable PDF which they can then print?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi there,

you can either set the parent's (subform) access to readOnly or protected which holds all the fields

or call a recursive function that will iterate through all objects within the form to set all fields readOnly or protected.

a recursive function could look a lot like the following:

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi there,

you can either set the parent's (subform) access to readOnly or protected which holds all the fields

or call a recursive function that will iterate through all objects within the form to set all fields readOnly or protected.

a recursive function could look a lot like the following: