In JavaScript, selectedIndex property is used to set the value of a select box element. A Boolean that sets the selected attribute value, i.e. The issue that you are having is because you are trying to modify the Status Reason system field. Note that a value of true does not set the option to selected if it is not already selected. Here in this example, we are going to select option contains a particular text by clicking a button. so that this