Help with Custom Links #10548
-
Howdy, A) Hide (disable/not show) the button if no URL is configured For A), If the custom field is blank, the button shows up as black text (the cf.orion description text)/white background. If the field isn't black, it shows up as yellow button (as desired). For B) If jinja2 can do an API &| JSON lookup on field, how can we change the button color? (ie If UP: button class=Green, ELSEIF Down: button class=Red, ELSE all others: button class=Yellow) Currently: Link Text: Link URL |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
For A, instead of using 'length' try testing for 'is not none'. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hey @PVM-NL, We have a custom field with the url to Orion for the device. We then have a custom link that uses the custom field that opens the page in the custom field. Hopefully the pics will help. |
Beta Was this translation helpful? Give feedback.
For A, instead of using 'length' try testing for 'is not none'.