how to hide HTML elements using catalog client script in portal and native view.

HrishabhKumar
Kilo Sage

I've written an onLoad catalog client script to hide to elements from  the catalog form. which works only on the native view but not on the portal view. I want it to work on both views.

 

catalog client scirpt:

image (5).png

 

code:

function onLoad() {
    g_form.addInfoMessage('Script is working');
    var attr = document.getElementById("c7d47fcf1b9c1a54c9860d87dc4bcbffAdd").style.display='none';
    var attr2 = document.getElementById("482b9f031b581a54c9860d87dc4bcb48c7d47fcf1b9c1a54c9860d87dc4bcbffremoveAllRows").style.display='none';
    g_form.addInfoMessage(attr);
}

 

0 REPLIES 0