Can we filter option set data

Can we filter option set data in a dropdown based on user role?

Kindly assist on that if you can.

Thank you

Hi there, @arch.hany… yes, you can do what you described by getting all of the options from the option set and then adding the :filtered operator to the end of the expression to filter the options to the appropriate subset. You will need to have an attribute on the option set that defines which options can be seen by which roles, and you would use the attribute as a constraint on the filter. Note that the attribute could be linked to another option set that defines the roles, and the User data type could have a role field that also links to that option set.

Hope this helps.


1 Like

Crystal clear, respect.

Really thank you

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.