Remove an option from EpiCombo

I did some research saying this was possible but could not find how to do this.

I have a use a table to store data about documents. We use user codes to determine what kind of document it is and which department it belongs to. This makes it easy to filter on searches and dashboards.

What I would like to do is to remove some options depending on user or where it is accessed from. How can I remove or hide an option from the dropdown when the dropdown is populated using user codes? Either in the setup or through code is fine.

This is the current setup:
image

This might work, but there is probably a better way to do this. Setup a BAQ to populate your combo box. Then you can control the results passed to the combo box from the BAQ. Use your BAQ to check for current user name, or some other criteria.
Good luck!

2 Likes

Sometimes I can’t see the forest for the trees. This should work. Thanks Nate.