How to allow users to choose between options (dropdown) without having write rights

0
Dear community,   I have created a form for anonymous users to select their preferred type of food. This form includes an enumeration and a dropdown menu. However, I discovered that for the dropdown to function correctly, anonymous users need "write" access. I would prefer that users only have "read" access to prevent them from altering the enumeration options, while still allowing them to select an option. How can I achieve this?
asked
2 answers
1

Sissi,

Enumerations cannot be changed by user's at runtime.  Write access is necessary for a user to be able to change an attribute value.  So if your food enumeration has these options:

  • Pizza
  • Beer
  • Ice Cream

And you can create an entity with an attribute of type enumeration using this enumeration.  Giving users write access to the attribute means they can select from the 3 enumeration options, but they cannot add another option to the enumeration or delete an option to the enumeration.

Hope that helps,

Mike

answered
0

Hi Sissi,

 

A way around this might be a non persistable entity with your form where the anon user has access on. When the user submits the form you will create a persistable one in the submit microflow.

 

https://docs.mendix.com/refguide/persistability/#non-persistable

 

 

answered