---
title: "Prevent a select list from displaying certain values"
canonical: "https://support.appfire.com/space/PSJ/15482900/Prevent%20a%20select%20list%20from%20displaying%20certain%20values"
format: markdown
---
> Macro (aura-html)

 

Script is called when screen is loaded. It will limit the available options in a selected list based on the user.

### Script - LimitSelectListOptions.sil

```
if(currentUser() == "jmuse") {
    lfRestrictSelectOptions("customfield_10703", {"1", "2", "3", "4", "5"});
}
```