000029701 - Custom Object to mimic a Numeric field in a Text field in RSA Archer

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support on Mar 26, 2019
Version 6Show Document
  • View in full screen mode

Article Content

Article Number000029701
Applies ToRSA Product Set: Archer
RSA Product/Service Type: Archer UI
RSA Version/Condition: 6.x
Platform: Windows
IssueThe Java script for mimicking a numeric field in a text field works perfectly fine for a single field or even multiple field in a single section but for one of our application we have 8 such fields in different tabs/sections and the script doesn't work for them.
ResolutionYou will need to find your field IDs then replace the ones in the Java script as seen below.

$('input[id*="f14224c"]').focusout(function() { IsNumberValid("f14224", $(this).val()); });

Adding additional lines like the ones above will increase the number of supported fields.

The up side is that this custom object works fine across tabs.
The down side to this method is that it blanks the field out if incorrect characters are present. This is unavoidable in this click-away method.