Notifications

566 views

Description

Client scripts that have more than one function are not working on the mobile interface. The browser is returning the following error:

Could not load onLoad client script 'Populate Roles and Hide Variables': SyntaxError: Unexpected token function

Steps to Reproduce

 

  1. Login to the base system Eureka demo. 
  2. Navigate to catalog client script: [Populate Roles and Hide Variables] applied on the catalog item: [Delegate roles to group member]. This catalog item is available for Mobile.
  3. For above catalog client script, set the UI type as [both] so that it can be utilized in both Mobile and Desktop. 
  4. Navigate to the mobile interface $m.do
  5. Navigate to Catalog item: [Delegate roles to group member].

Note the Javascript error in console:

Could not load onLoad client script 'Populate Roles and Hide Variables': SyntaxError: Unexpected token function

 

Workaround

For a client script to work as expected in the Mobile UI.  All the code must be contained within the script's onLoad, onChange, or onSubmit function.  Additional functions can be nested within this function.


Related Problem: PRB605992

Seen In

Dublin EA 8
Eureka
Eureka Patch 3 Hot Fix 1
Fuji Patch 2 Hot Fix 1
Fuji Patch 3

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2015-09-25 08:11:31
Published:2015-01-19