netsuite saved search to display custom form used
DESCRIPTION
Netsuite Saved Search to Display Custom Form UsedTRANSCRIPT
See the Custom Form Used when the Record is in View Mode and Creating a Save Search to Show the Custom Forms Used by Records Thereafter
1. Follow the instructions in Suite Answer # 31254 however use the set Store Value = Checked.2. Then do mass update using mass update script as follows:
Through script you use to type of scripts to update your existing records and for newly created records.
• For existing records, you may use a Mass Update scripts. The Mass Update script would update your custom field with the Store Value = T.
Sample Script would be:function massUpdate(rec_type, rec_id) { var rec = nlapiLoadRecord(rec_type, rec_id); var cf = rec.getFieldText('customform'); nlapiSubmitField(rec_type, rec_id, 'Custom Field Internal ID', cf); }
You may check SuiteAnswers article, Running a Mass Update Script in NetSuite(Answer Id: 10610) on how to deploy the Mass Update Script• For New record, you may use a Before Record Submit User Event scripts.
function beforeSubmit(type, form) { var cf = nlapiGetFieldText('customform'); nlapiSetFieldValue('custbody37', 'Custom Field Internal ID'); }
3. Do the save search to show the custom form used.