Is there a possibility to hide/show label/header component in UIPath custom forms?
In UIPath Custom Designer there is no option to use any kind of logic affecting the visibility of the component. However, when I look to JSON code of the component I have noticed this section:
{
“tag”: “h2”,
… removed for concicesness…,
“conditional”: {
“show”: null,
“when”: null,
“eq”: “”
}…}
I was wondering whether I could use it to affect whether the component is displayed or not. I have tried this:
{
“tag”: “h2”,
… removed for concicesness…,
“conditional”: {
“show”: “false”,
“when”: “myVariable”,
“eq”: “1”
}…}
and it worked. However, I would need the condition to be
if (myVariable > 1) {
show = false;
}
I also tried
“conditional”: {
“show”: “false”,
“when”: “myVariable”,
“gt”: “1”
}…}
but this did not work.
I was wondering whether jsonLogic could be used here but I do not know what would be the syntax.