I have a multi value dialog list called 'Roles' this does a look up of all the user roles available in the ACL. A user will then select which roles they want to and submit the form. On submission this should call the javascript to set the cookie value.
The cookie value will need to store the roles the user has selected in 'Roles' field. There will then be a field called 'EffectiveRoles' stored on all the forms in the database which will need to get the values of the 'Roles' field stored in the cookie. If the cookies is empty ie the user has not submitted the form then the field will be set to @UserRoles.
I need to know how to set the multi values of the 'Roles' field in the cookie and then retrieve them in the 'EffectiveRoles' field.
Lotus IBM
Last Comment
Zvonko
8/22/2022 - Mon
AndrewJayPollack
why do that at all? Why not just use @UserRoles on all the forms? Storing them locally allows them to be hacked by a smart user.
fayeb
ASKER
The customer wants the user to be able to select what roles they would like to use. It's whats been asked for!
fayeb
ASKER
All I need to know is how do i read the values from a multivalue field and set them in the cookie e.g. Roles=[role1],[role2];
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.