setFormValue() fails on a single select list when setFieldOptions() are used too.
Steps to Reproduce
1. Create a single select list custom field with options A, B, C, D and E, for a JSM project.
2. Create a Behaviour mapped to the project Service Desk customer portal.
3. Filter the options to only A, B and set default option to "B". Attach following script to the custom field:
When create a request through customer portal, the custom field options are filtered and a default option 'B' is selected.
The custom field options are filtered, but option 'B' is not selected.
setFormValue() fails after setFieldOptions().mov