Drop down list filtered by userrole

hi, have a "docType" form with 2 fields, name, and role (userrole) :

and i want to build a drop down list to show ONLY the records linked to the userrole, ex : Administrator user only can see Manual/IA Contable options, is there a way to filter this? i have a field with the app.getCurrentUserRoles() value within, may i insert a "readers" field into the docType form to achieve this?

Thanks in advance

Lea

Generally you would pull these values into your dropdown using a service. You can specify filters when you setup the service. The service options do not offer a 'by role' filter, but if you create a field in the form and auto-populate it with the current user's role (using app.getCurrentUserRoles()), then you could filter the dropdown to include only the items that pertain to the user's assigned roles.