JavaScript Code screen

Lets you configure custom JavaScript for an application or eForm.

Figure: JavaScript Code screen

JavaScript Code screen

Video: eForm Builder Interface

Good to Know

  • If you create a new version of an application, and change shared JavaScript or CSS at the application level, when you publish the new version, the changed shared JavaScript or CSS files apply to all versions of the application, including all previously published versions, and all application instances.

    This rule does not apply to custom JavaScripts and CSS created in an eForm. If you want to use different versions of JavaScript or CSS for different versions of an application, you can specify the scripts in your eForms, instead of specifying them at the application level.

How to Start

  1. Do one of these:.
    • To change a shared JavaScript from an application, do this procedure.
      1. In the Application Explorer, in the My Applications pane, select an application, and click Show All Files Show All Files icon.
      2. Expand [Application Name] > Shared Resources > JavaScript.
      3. Select your JavaScript.
      4. Click Edit Edit icon.
    • To add or change a shared JavaScript from an eForm, do this procedure.
      1. On the Application Explorer screen, do one of these:
      2. On the eForm Builder screen, click JavaScript JavaScript icon.
      3. Click Shared JavaScript Shared JavaScript icon.
      4. Do one of these:.
        • To add a shared JavaScript, do this procedure.
          1. Click Add.
          2. On the JavaScript screen, configure as necessary.
          3. Click Next.
        • To edit a Shared JavaScript, do this procedure.
          1. On the Shared Form JS screen, select your JavaScript.
          2. Click Edit Edit icon.

Fields

Field Name Definition

Form JavaScript

Function:
Specifies the JavaScript functions for your eForm.
Accepted Values:
Valid JavaScript code with no file headers.
Default Value:
None
Example:
Refer to: