Page 1 of 1

disable SAVE

Posted: 2022-03-03 14:53
by angus
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.

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) }});
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?

Re: disable SAVE

Posted: 2022-03-07 14:42
by angus
anyone able to help?