---
title: "lfAllowSelectOptions"
canonical: "https://support.appfire.com/space/PSJ/15480281/lfAllowSelectOptions"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | lfAllowSelectOptions(field, options[, triggerChange]) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Restricts a field's selectable values to the list of options given as a parameter of the function.

Restricts a field's selectable values to the list of options given as a parameter of the function.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| field | string | Yes | Field to restrict options for |
| options | string[] | Yes | List of remaining options |
| triggerChange | Boolean | No | If set to "true", it triggers the change event on the field when a function is used |

## Return Type

**None**

## Example

```javascript
lfAllowSelectOptions("priority", {"Medium", "High"}); 
//where field = "priority" and options = "Medium" and "High"
```

If you want to trigger the change event on the field when using the lfAllowSelectOptions function, you can use the optional triggerChange parameter set to true:

```javascript
lfAllowSelectOptions("customfield_10000", {"option1", "option2"}, true);
//where field = "customfield_10000" of type select list, options = "option1" and "option2" and triggerChange = true
```

## See also

> Macro (contentbylabel)