Hi All , Is it possible to set a default value for...
# suitescript
s
Hi All , Is it possible to set a default value for a field in a suitelet which is written in 2.0! I have trying to use setDefaultValues({'fieldID':'value'}). But its not working can anyone help regardin it?
m
I haven't used either setDefaultValues or updateDefaultValues but field.defaultValue = 'value'; always worked for me. I noticed that the example for updateDefaultValues uses a call to setDefaultValues so I wonder if there's a typo or two in the api doc.
s
@mbucklaew setDefaultValues didnt work fr me. But updatDefaultValue work. I have never tried with field.defaultValue. Is this the standard API?
m
Yes. Several examples in the API doc use it.