Adding a script component to a page
Script components allow you to add Javascript formulas to a page. Adding business logic introduces templates and formulas.
Writers: this topic can be beefed up with an example of a
script.
- Navigate to the page you want to edit and click Design This Page to open the Page Editor.
- If the page does not contain a section to hold a script component, drag a New Section component from the left pane onto the page.
- Add a script component by dragging and dropping it on the page.
- Click Edit to display the Edit Script page.
- Insert the script for your page.
- Use the Template Helper area of the editor to insert
tokens that select values:
- From the left drop-down menu, select the type that you want to retrieve values from.
- From the second drop-down, select the field value of interest to display the token required to extract that value.
- From the field below the drop-downs, select the token value and paste it in the template body.
- Click Save to save the template and return to the page.
- Save the page.