JavaScript Masks
Hi, we are trying to use a JavaScript code on PEGA 7.3.1 to apply masks on specific fields, like document number, in our application.
For that, we have created two text files, one with jQuery Plugin and one with the masks file, those were associated on Harness.
On screen first load this mask is applied and it works fine, but if we perform any refresh action on the section, the field is losing the reference of the mask.
We’ve performed some tests on browser and notice that Pega is setting value data-changed="false" when user interacts with this field, and our plugin looks for the value on this property to be executed.
Do you guys know why is that property for and if we can modify its value on some PEGA rule?
data-changed attribute is set to apply correct readonly formatted value for an editable control. You can't change this behavior as the code block is present in final rules. Probably you can raise an SR so that this can be avoided for non-auto controls using a hotfix.