Java script used to control the behavior of a request form field has no effect in Internet Explorer 11 (IE11) in RSA Identity Governance & Lifecycle
Originally Published: 2020-01-23
Article Number
Applies To
RSA Version/Condition: 7.0.x, 7.1.x, 7.2.x
Browser: Internet Explorer 11 (IE11)
Issue
This common java script syntax works in all browsers except IE11. In IE11, the java script has no effect on the form behavior and if the IE Developer Tools (F12) option is enabled, the following error message occurs:
'<field-name>' is undefined
Example 1: Multi Select Drop Down and Static Text
In the example below, a request form is defined with a Multi Select Drop Down field called UserDetails that allows the user to choose either Name or Phone from the drop down list. A Static Text field called SelectedOption is defined to display text on the form if Name is chosen from the Multi Select Drop Down field.
Field Definitions:
Here is the java script used to define when this field is displayed:
Expected Behavior in all browsers:
The expected behavior is to display the Static Text You have selected 'Name' only when Name is selected.
Note that in IE11 the Static Text shows regardless of what option is selected from the drop down menu.
Example 2: Controlbox
A similar problem occurs with Control Type Checkbox. In the example below, a check box is defined to display on the form by default. Unchecking the box removes the check box from the form.
Field Definition:
Here is the java script used to define when this field is displayed:
Expected Behavior in all browsers:
The expected behavior is to display the Checkbox Display User Name when the form is run.
Actual Behavior in IE11 only:
Note that in IE11 the Checkbox Display User Name is not displayed when the form is run.
Cause
Resolution
For Control Type Multi Select Drop Down
Modify the java script
FROM:
FROM:
(UserDetails.options[0].selected === true)
TO:
(document.getElementById('UserDetails') && document.getElementById('UserDetails').options[0].selected===true)
For Control Type Checkbox:
Modify the java script
FROM:
FROM:
(DisplayUserName.checked === true)
TO:
(document.getElementById('UserDetails') && document.getElementById('DisplayUserName').checked === true)
Related Articles
RSA Identity Governance & Lifecycle menus do not display correctly in Internet Explorer (IE) 11 when using Compatibility V… 132Number of Views Request Form Field Enabled condition for Control Type Checkbox does not disable the field in RSA Identity Governance & Lif… 25Number of Views Unable to load form fields when using a form element of control type "Drop Down with Web Service" in RSA Identity Governan… 95Number of Views Form field control type 'Entitlement Table' incorrectly allows the selection of indirect entitlements when 'Change Handlin… 49Number of Views Form field condition with JavaScript expression using startWith() javascript is not working with IE 11 and RSA Identity Go… 42Number of Views
Trending Articles
RSA Authentication Manager 8.9 Patches and Hotfixes Readme How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device RSA Authentication Manager 8.9 Setup and Configuration Guide Using Vault instead of cleartext password in WildFly configuration file in RSA Identity Governance & Lifecycle Authentication Manager Security Console and Operations Console Inaccessible After Certificate Update
Don't see what you're looking for?