Portal Script

Overview

Users can include a JavaScript file to suit their portal requirements. JavaScript provided in the portal.js file will be rendered in the "head" section of the page.

Prerequisite

Custom JavaScript code for the portal, tested to be functioning correctly is a mandatory requirement.

Changing the Script File

  1. Login to Portal Administration.
  2. Click Edit in the selected portal's row in the Available Portals table. 
  3. Click Script.
  4. Click in the blank window. See Figure "Blank Script Window".
  5. Keep the cursor in the 1st line and paste the entire text of the custom JavaScript code.
  6. Click Save. The changes are saved in the portal.js file. 
  7. Click Reset to clear the script change and rollback to the prior state if the system displays an error message.     
  8. Click View.
     

 

Figure : Blank Script Window

Important Notes:

  • Javascript is cached to improve the portal's performance. You may not see your changes reflected for up-to 1 hour. 
  • Do not include the opening or closing tags in your JavaScript.
  • Moxie does not support and does not assume responsibility for issues that result from use of custom JavaScript. Customers are fully responsible for all customizations done using JavaScript.