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
mbucklaew
01/30/2018, 1:38 PM
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
samyt
02/03/2018, 2:16 AM
@mbucklaew setDefaultValues didnt work fr me. But updatDefaultValue work. I have never tried with field.defaultValue. Is this the standard API?