How to hide a column from multirow variable set?

Rashmi11
Tera Contributor

Is there any way to hide the column from multi row variable set. I want to hide requested for in table below Add/Remove

7 REPLIES 7

asifnoor
Kilo Patron

Hi,

Not fully sure what your requirement is here?

Why would you want to add the varaible to MRVS and then hide it? If you do not want the varialbe, then just dont add it to the MRVS.

And requested_for as such should not be part of MRVS as the value will not change for every record. So you can add this outside of variable set and then set the default value and hide it from dispaly using ui policy.

Mark the comment as a correct answer and helpful if this has answered your question.

While I agree on the Requested for... lets say you have a choice field... and they wanted an other with a box that offered more info... you don't want the box... unless other is selected... or say you have a true/false that says "My item isn't listed" and a UI policy that makes a field appear because of that... perhaps you don't want the true/false in the table just the text field.  There are use cases that make sense to having something on the form... but not listed in the table view part of a MRVS

vladimir_kubovi
Tera Contributor

Its possible using the macro/widget, 

you define the MRVS first which has a internal name field. This value is later used in a source code of the generated page as an ID of the parent DIV container that contains the whole table.

 

what you can do is to define a portal widget with a style tag in the BODY!!! 

f.e. hide last column

<style> #my_mrvs table tr th:last-child, #my_mrvs table tr td:last-child{display:none}</style>

 

once you got it you can define a variable of type "custom" and call it into life