Hello. Can someone help me how to set a default fo...
# suitescript
r
Hello. Can someone help me how to set a default for a "select" field upon submitting a suitelet form? I created a form on "GET" with a select field, the options are add manually through addSelectOption. Upon submitting the form, I can get the value of the selected option. But when I try to ".defaultValue", it does not set it to the correct option. I can do it on text field type, but not on the select type field.
b
what does the code look like
r
sorry. it's okay now. it was my fault. the variable had typo that's why it was setting the default value as empty. thank you