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!
Make a field readonly for certain users but non with js
Re: Make a field readonly for certain users but non with js
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.
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.