Hide variable of variable set

miyu
Tera Guru

I want to hide the variables in the variable set when the form is opened.
I want to hide the 'カテゴリ'.
How can I do this?

find_real_file.png

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

DOM manipulation is strongly discourage because it may break in the future. Nevertheless, column in mrvs can be hidden using it.

1. Set Category field to be hidden.

find_real_file.png

2. Display the form and right click on the mrvs header and select "inspect".

find_real_file.png

3. Find the "table" tag and memo the id.

find_real_file.png

4. Create a Client Script on the form (not in the mrvs). Make sure "Isolate script" is unchecked.

function onLoad() {
    try {
        document.getElementById("table_119f7e162fc141109d10b2e72799b659_rows").firstChild.firstChild.firstChild.lastChild.style.display = 'none';
    } catch (e) {
        alert(e.message);
    }
}

find_real_file.png

Execution result:

find_real_file.png

View solution in original post

3 REPLIES 3

TJLillo
Kilo Guru
I had the same question before. I don't believe you can hide the column in a mrvs.

Maik Skoddow
Tera Patron
Tera Patron

Hi @miyu 

I tried setting the variable to hidden:

find_real_file.png

But it doesn't work correctly. In the MRVS the variable is shown, but when entering a value it is hidden:

find_real_file.png

I don't know whether it is intended behavior or a bug.

Kind regards
Maik

Hitoshi Ozawa
Giga Sage
Giga Sage

DOM manipulation is strongly discourage because it may break in the future. Nevertheless, column in mrvs can be hidden using it.

1. Set Category field to be hidden.

find_real_file.png

2. Display the form and right click on the mrvs header and select "inspect".

find_real_file.png

3. Find the "table" tag and memo the id.

find_real_file.png

4. Create a Client Script on the form (not in the mrvs). Make sure "Isolate script" is unchecked.

function onLoad() {
    try {
        document.getElementById("table_119f7e162fc141109d10b2e72799b659_rows").firstChild.firstChild.firstChild.lastChild.style.display = 'none';
    } catch (e) {
        alert(e.message);
    }
}

find_real_file.png

Execution result:

find_real_file.png