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 18, 2016 - Updated October 24, 2016

Have a question? Get answers now.

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