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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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