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

Lock a subform containing a table after entering data?

uf_research
Level 1
Level 1

I would like to lock a subform that contains a table after information has been entered into it, but before it is sent to a user to enter data into another subform that contains a table.  Is there a simple solutions?  Please see below picture.

Capture.PNG

1 Reply
MinusZero
Level 7
Level 7

You would use the normal .access code to disable the subform. By making the code work at the top level of the subform, everything in it will be disabled.

Example:

this.resolveNode("mySubForm").access = "protected"; //javascript, you can use readOnly instead of protected, but readonly fields will still be tabbed through.

You need to decide how the code is triggered. Do you want it to execute from a button click, PrePrint, PreSubmit. The same code is needed.

You might want to build in a way to unlock it as well. Create a way to have .access = "enabled";