Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Currency Control when editing focus jumps to front of the value



When editing the currency control, the cursor focus shifts to the front of the value.

The currency field (with currency control) is configured to display as an editable field which uses Read Only formatting (that is, 12.00 EEK). On clicking in the field, the focus moves to the front of the value.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a section with a property which stores currency (use the Currency property).
  2. Configure the Read Only display such that, 12 displays as 12.00 USD.
  3. Use this configuration for editable fields (out-of-the-box functionality).
  4. Click the fields at runtime to set the cursor focus in the required position (for example, 1|2.00). After the click, the cursor shifts to the front of the value.

Root Cause

A defect in Pegasystems’ code or rules.


Perform the following local-change at the global level.

Include the below script in the UserWorkForm.

if(pega.ui && pega.ui.d) { 
pega.ui.d.focuslistnerattachcust = function() { 
var target =
var valLength = target.value.length
var myNav = window.navigator.userAgent
var isIE= myNav.indexOf("MSIE "); 
if (isIE > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { 

pega.ui.d.attachOnload(pega.ui.d.focuslistnerattachcust, true); 


Published December 29, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us