How can I hide the fields of the multi row variable set?

Ramona Elena
Kilo Contributor

I would like to hide the field on the portal and just leave the add/remove button.

Is it possible?

This is how it looks now, but the client would like to just have the add button.

Thanks!

find_real_file.png

5 REPLIES 5

Nihanth Allada
Mega Guru

HI 

i think you can achieve this using DOM and below is the on load client script

function onLoad()

{ //Type appropriate comment here, and begin script below //

 var tbl = document.getElementById("sys of the table ");

var col = tbl.getElementsByTagName('th')[2].style.visibility="hidden";

 

Regards

Nihanth Allada

if not you can try with below code and let me know if you need any help on the scripting 

 

You can create an onLoad Client script and hide the variable set with

'g_form.setDisplay('<name of variable set>', false);'

 

or 

I created a Catalog Item Client Script to hide the multi-row variable set when the lower order container is collapsed.

 

function onLoad() {
//Create an event listener for the button which collapses the Agent Scripting Section container.
//If the button gets clicked, the hideSelectedDispositions function is called.
document.getElementById("img_42a782774f9aa780f3d8d0af0310c773").addEventListener("click", hideSelectedDispositions);

//Declare the hideSelectedDispositions function
function hideSelectedDispositions() {
var selectedDispositions = document.getElementById("element.IO:ebe1ccc51b6327c0b40d10e58d4bcba1");
if (selectedDispositions.style.display === "") {
selectedDispositions.style.display = "none";
} else if (selectedDispositions.style.display === "none") {
selectedDispositions.style.display = "";
}
}
}

Ramona Elena
Kilo Contributor

Hi Allada,

Thank you for your response. Your answer was helpful to hide the entire variable set. My question refer to hide the fields below the add button and leave just the button.

Did you ever get the solution for this ?