Hi all, how should I use a Suitelet to set a check...
# suitescript
n
Hi all, how should I use a Suitelet to set a checkbox to be checked? I tried true (Boolean), but it didn't work...(use false to uncheck the box does work though...) Edit: Interesting, so I was trying to set the 1099 Eligible checkbox on vendor record, I just created a custom checkbox and was able to check it using suitelet, but I can't check the native 1099 Eligible box...
e
Typically a boolean
true
and
false
is the proper way to set a checkbox value, but there are some contexts where it is
'T'
or
'F'
(strings) instead
I don't know about those specific 1099 fields
n
Hi @erictgrubaugh, I tried the string value but it didn't work. Very weird, this works rec.setValue('custentity_st_sc_1099_eligible', true), but rec.setValue('is1099eligible', true) doesn’t work
Update: I found out this checkbox is related to address, when vendor address is in US, this box can be checked, when address is not in US, this box just can't be checked, which makes total sense
1