Lock edit with checkbox - script

Discussion created by tonizd on Dec 18, 2016
Latest reply on Dec 19, 2016 by tonizd



I am a new user of FileMaker and I don't know how to write scripts so I need your help...

Is it possible to write a script that will enable locking writen data (no edit) of database when the checkbox on layout is checked. So I have a layout and user is writing some data. When he is done he check the checkbox on layout and then that data is locked for edit.  Why checkbox? Well because checkbox is linked to each record in database. Maybe in the script there can be value like 0=not locked, and 1=is locked. It would be done for each record  seperately.