Creating Custom Fields for Checkout
To add new fields to Checkout, you must create custom transaction body fields in your NetSuite account. For more information about how to create custom fields in NetSuite, see Creating Custom Transaction Body Fields.
The SC Custom Fields extension only supports transaction body fields. To implement custom item, custom transaction line, and custom transaction item option fields, see Create Custom Fields by Customizing Templates.
The SC Custom Fields extension allows the following transaction body field types:
-
Checkbox
-
Date
-
Text Area
-
Long Text
-
Free-Form Text
When you create a transaction body field for the SC Custom Fields extension, be aware of the following:
-
The Field Type must match the field type you want to include in the checkout application.
-
The Web Store and Sale fields must be checked in the Applies To subtab.
-
If you select the Mandatory box in the Validation & Defaulting subtab, the field is required for all domains and you must mark it as required in the SuiteCommerce Configuration record for all the domains of your website.
If you want the new transaction body field to be required in only one domain, you should mark the field as required in the configuration of that domain only. You do not need to mark it as mandatory during creation.
-
The subtab where you want to display the custom field on the Sales Order record should be selected in the Display subtab. Otherwise, the field is shown in the Custom subtab of the Sales Order record.
The character limitation for the custom fields in Commerce websites is set by the field type in NetSuite. For more information about the limits, see Field Type Descriptions for Custom Fields.
When you have created your custom transaction body fields, you are ready to Configuring Custom Fields for Checkout.