Dynamic Defaults and Dynamic Hyperlinks

When working with free-form text, text area, rich text or hypertext fields, in the Default Value field on the Validation & Defaulting subtab, you can include NetSuite tags in the default definition. NetSuite tags are populated with field values when the page is loaded or saved.

Dynamic defaults can be used in the hyperlink fields to include information from the record or the current session in the URL for the website.

To include NetSuite tags in the default definition of a field, enclose each tag within curly braces, defining field tags in a dynamic default as {tag}, where tag is the ID of the field. Each field in NetSuite has a unique ID and therefore a unique tag definition.

Note:

Because field IDs are incorporated into tag definitions for fields, when creating custom fields, enter meaningful IDs for each custom field and use consistent naming conventions that meet your business needs. The default NetSuite IDs are meaningless, and in your dynamic defaults it will be difficult to know exactly what the field references.

Dynamic defaults are evaluated, and each NetSuite tag is substituted on page load and page save. However, if you check the Store Value box, the tag substitution values are saved when the page is created as a true default. The default value is saved and is not dynamically changed when fields on the page change, letting you create a dynamic default that retains its initial value. If you leave the default empty on the initial creation, it remains empty on the next edit. The default value has no effect on previously saved records. The field must be edited manually or updated with custom code to change its initial value.

Important:

If you need to ensure that NetSuite tags defined in a dynamic default are substituted on each page load and save, clear the Store Value box.

See the following topics:

Related Topics

General Notices