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

Masking Does not masks the embedded elements

SA-29264

Summary



User has performed the masking in the following way:

fireflyAPI.set('masking', {'*':['p','.amount']});

and observed that embedded HTML elements are not masked.

Error Messages



Not applicable


Steps to Reproduce



Add masking script as part of fireflyAPI.ready


Root Cause



An issue in the custom application code or rules.

The masking feature does not apply to the embedded (child) HTML elements by default. To mask the embedded (child) HTML elements you need to set elementMasking in fireflyAPI to true.

Resolution




To mask the embedded (child) HTML elements, set elementMasking in fireflyAPI to true.
 
Also while applying the masking there is no need to specify the tag for which the masking needs to be enabled just the class name will do the magic.
 
So, the correct values to be inserted into fireflyAPI are :
 
  • fireflyAPI.set('masking', {'*':['.amount']});
  • fireflyAPI.set('elementMasking', true);

 

 

Published October 25, 2016 - Updated December 2, 2021

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