Block Some Fields

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
espo
Veteran Member
Posts: 98
Joined: 2013-03-01 12:55

Block Some Fields

Post by espo » 2020-07-21 08:18

Hi everyone.
I would like to know if it is possible to block some fields for a specific user.
For example, the table has four fields: name, city, address and telephone.
User 1 can fill in all fields, while User 2 can only fill in the phone field. For User 2 the other fields (name, city and address) must be blocked.
It's possible?

Thanks so much.

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

Re: Block Some Fields

Post by pbottcher » 2020-07-21 16:57

Hi,

short answer: yes.

You can disable the fields. There are a couple of posts in the forum on how-to's.
You still need to check that in the hooks insert, update as the pure js version is not safe.
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.

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1160
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: Block Some Fields

Post by onoehring » 2020-08-06 15:06

Hi espo,

please see my extension (in my footer) - those might help.
Column-Value-Based-Permissions ( viewtopic.php?f=4&t=3498 ) and
Field Permissions ( viewtopic.php?f=4&t=3308 )

Olaf

Post Reply