Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
How to update a field displaytype and make it Mandatory in suitelet on field change
Hi everyone,
I have suitelet that generate a Form and some fields (one select and one textarea). I am trying to have the rejectreason field changed to displaytype('normal') when we select a specific value [rejected] on the select field.
if ( request.getMethod() == 'GET' ){ var newForm = nlapiCreateForm('My Form'); var select = newForm.addField('custpage_selectfield','select', 'Approve or Reject here'); select.addSelectOption('',''); select.addSelectOption('approved', 'I approve'); select.addSelectOption('rejected', 'I reject'); select.setMandatory(true); var rejectreason = newForm.addField('custpage_rejectreason', 'textarea', 'Please enter reject reason if applicable'); rejectreason.setDisplayType('disabled'); } this driving me crazy and i am starting wondering if this is possible.?
0