Hi ,
I have created an Interactive Grid based on a Fusion REST Data Source. I have a requirement to mask certain mandatory columns on the front end. For example, if my API is based on suppliers, I want to mask mandatory columns such as Supplier Name, DUNS Number, and Supplier Number.
can anyone help me with this.
I attempted the following approach by adding the code under the Column Initialization JavaScript Function section.
function(options) {
var val = options.value || '';
if (options.mode === "view") {
return val.length > 3 ? val.substring(0, 3) + '****' : '***';
}
return val;
}
With this approach, column is getting hidden, but it is not getting masked.
Can someone help me with this.
Thank you!