Apply styling based on a field being empty or not
AnsweredHaving real trouble making conditional styling work in a few circumstances. I have a field "[[V0Scancard]]" and I want to apply a styling to a tab only if the field is not blank.
When I use the function
return [[V0Scancard]] !== null;
in the rule/condition, it correctly returns true or false depending on the content of the field. But the styling is always applied in the form, irrespective of content. I can make the tab styling flip on or off if I point it to a yes/no field and toggle that in the preview, so the styling itself works. What am I doing wrong?
0
-
Checking against empty depends on the type of the column. What type of column is your column "V0Scancard"?
Best post a screenshot from this column's settings0 -
Hi Christof, it is a single line text field. I've sorted the problem now, with help from your excellent support team. Turns out, the Test was giving inaccurate results that didn't happen in runtime. also amended to !=='' rather than null or "".
seems to work fine now.
0 -
Great to hear our support could help :)
And thanks for sharing!0
Please sign in to leave a comment.
Comments
3 comments