Make a field readonly for certain users but non with js

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
fgazza
Veteran Member
Posts: 205
Joined: 2019-04-30 17:37

Make a field readonly for certain users but non with js

Post by fgazza » 2020-09-30 21:45

Hello everybody. I would need to render a readonly field for some users but for security reasons I would like to avoid using javascript as experts may get around the "readonl'y" setting.

Can someone help me?

Thank you!

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1638
Joined: 2018-04-01 10:12

Re: Make a field readonly for certain users but non with js

Post by pbottcher » 2020-10-02 18:50

Hi,

you can still make the field readonly via js, but you should check (anyways) the data on the before_insert/update hook to prevent unwanted manipulation.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Post Reply