Problem with Multi Selection Field

17 Apr '16, 06:33 AM
2,874 Views
No Forum Badges

Hi guys,

I have two tables :

     User (username, password,id)

     Group ( id, group_name).

                 group_name has 4 roles : admin, manager, author, reviewer

I want to create a form for user to register. Guest only choose 'author' or 'reviewer' or both of them.

First idea in my mind is model with Multi Selection Field ( entity is Group), but it show all role to the user. It's not good at this point.So, I'm stuck with this :(

Many thank for help!

 

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 8

Hi,

you have to add an Attributes Condition to the Selector component preloading the Group field.
The Attributes Condition excludes all roles that are not 'author' or 'reviewer' and so the Group field will show only the remaining options.
You can find more information about the Attributes Condition watching this tutorial

https://my.webratio.com/learn/learningobject/view-components-data-binding-v-72 

 
x 0
Answer at this question and get points!