disable SAVE

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
angus
Veteran Member
Posts: 128
Joined: 2020-05-28 22:27

disable SAVE

Post by angus » 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.

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?
AppGini 22.13

angus
Veteran Member
Posts: 128
Joined: 2020-05-28 22:27

Re: disable SAVE

Post by angus » 2022-03-07 14:42

anyone able to help?
AppGini 22.13

Post Reply