how to hide HTML elements using catalog client script in portal and native view.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 05:18 AM
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:
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