List NetSuite Custom Fields in a Record


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. echo "array(\n";
  2. $customFieldList = $currentRecord->getField('customFieldList')->getField('customField');
  3. $lastField = end($customFieldList);
  4. foreach($customFieldList as $field) {
  5. echo "\t'".$field->getField('internalId')."' => ''";
  6.  
  7. if($field != $lastField) echo ",";
  8. echo "\n";
  9. }
  10. echo ");";
  11.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.