I'm working with a SS1.0 suitelet and I'm trying t...
# suitescript
m
I'm working with a SS1.0 suitelet and I'm trying to generate a drop down field for a list that I have. The code looks something like this: invlist.addField('passfail', 'select', 'Pass<br>Fail', '44'); This generates what looks like a drop down including the downward pointed triangle, but no options are generated and the field acts like a text box. I have also attempted to set the field to a variable and add options to it manually, the only change this makes is that the first option is shown in the field, but it still acts like a text box. Has anyone else run into this?
b
make sure that your code returns the field with its select options set in a GET request
NetSuite does a GET to the suitelet to get select options
m
@battk thanks I'm reviewing the code now to see if I can determine the method using request.getMethod(). It looks like we have used that call in other suitelets I'm not sure why it wasn't applied to this one.
Okay I checked for sure that it is in the GET method and the behavior is the same. Just a text box with a triangle, lol.
b
what does the code generating the form look like