Forums

does anyone have any idea how to make a switch in CC7?

Fredolino 02 Oct, 2022
Hello,

does anyone have any idea how to make a switch in CC7?
In CC6 it was easy:

Name: check_beo_arten_exist
{var/empty:observations_list.row.Beobs.state}

true:{view:beo_delete_link}
false:<i class="icon trash disabled"></i>

And how do I check the table list now?With text node?Events?I can't get a result with either function in the view.

F.
Fredolino 04 Oct, 2022
How does it work now with the switch in run conditions?
I have a text node called "beo_delete_link" in the "delete" table column in the view.
In the text content: <i class="fa-solid fa-trash"></i>
RunConditions:
{var/empty:observations_list.row.Beobs.state} if ANY rules match
value 1: true:{view:beo_delete_link} == value 2: false:<i class="fa-solid fa-trash disabled"></i>
This results in an error message.And if I exchange "==" with "is empty" or "is not empty" then I'm missing a value-field.
Does anyone have an idea how it could work?

F.
You need to login to be able to post a reply.