I'm new to SuiteScript, and the documentation is h...
# suitescript
s
I'm new to SuiteScript, and the documentation is horrible, so I'm just trying to do something simple like check if a field is checked or not, and disable another field depending on if it is checked
b
screnshaw: You have a typo in your script btw
"reord.getField("custentity_coupon_code").isDisabled = false;" << Should be record
Also, isDisabled is not a setter, it only returns true or false depending if the field is disabled or not.
I just answered your stackoverflow question
s
Lol, that was a quick find. Ok, I'll give it a shot. My Content assist isn't working in Eclipse (Netsuite hasn't been able to figure it out so far) and the documentation is poor. Is there anyway to see what all actions can be called from, let's say something like a Record or Field Type?
e
Are you writing SuiteScript 1.0 or 2.0? Either way, all of the API docs are located in Help. In 2.0, each module has its own dedicated page; in 1.0, the functions/objects are broken out into a page for each related group of functionality. For 1.0, navigate in Help to SuiteCloud > SuiteScript 1.0 > SuiteScript 1.0 API For 2.0, navigate in Help to SuiteCloud > SuiteScript 2.0 > SuiteScript 2.0 API > SuiteScript 2.0 Modules