disable SAVE
Posted: 2022-03-03 14:53
Hi everyone, I was looking for a way to stop a record from being updated accidently and I found this on the board viewtopic.php?t=4446 and have Pbottchers code working ok.
I have one issue though, if a record already has a lock on it and is opened then the 'SAVE' button is still enabled. Do you know how I can also disable the save button where the value of LockRecord=1 (ie checked) as well as disable it when some checks the field too?
Code: Select all
$j('#LockRecord').on('change',function(e) {if ($j(this).is(':checked')) {$j('#update').attr('disabled','disabled')} else {$j('#update').attr('disabled',false) }});