Highlighted

security roles in eforms

Avatar

Guest

28-08-2008

Hi



I am using LiveCycle 7, I need to enable/disable fields in eforms based on the role of the one who is modifying it.



Example: Only managers can change 'Password' field in a particular eform, while for an employee, it should be disabled.



Note: This should be done dynamically



Can somebody please explain how this can be achieved?



Thanks in Advance,

Subu.

Replies

Highlighted

pguerett

28-08-2008

Two ways ....either have unique forms for each role being played or have a hidden field on the form and have the role that is supposed to be played put into the field. Then on initialize of the form check the value of that field and programmatically lock/unlock fields accordingly.
Highlighted

BPM_user

02-12-2008

Hi,

I have a similar situation. depending on who is logged in the workspace one section of the form must be enabled and disabled -for instance user1 is logged in he fills in the form with the section disabled and sends the form to user2. User2 will see all the data and will have the section enabled performs some action and sends the same form to user1 user1 will see all the data along with the section that was filled in by user2 but that will be disabled. . How can we do this?

Do we have to write some code in form designer while designing the form or is it to do with the workbench?



Thanks in advance.
Highlighted

pguerett

02-12-2008

You either have a separate form for each user or you have one big form and have code that enables/disables the appropriate pieces based on who is logged into workspace. You woudl have to pass a flag into the data (in the process) to tell the form the role that you want when it is opened.