conditional rendering using custom fields #9587
-
I'm trying to create custom link with conditional rendering which is using custom field(as per example from: https://docs.netbox.dev/en/stable/models/extras/customlink/). My conditional custom link: {% if object.custom_fields.specifications == true %}Specifications{% endif %} I also tried to skip 'custom_fields': {% if object.specifications == true %}Specifications{% endif %} but link dissapeared altogether. As I understand, there are no such field as 'specifications' at object's root. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can reference custom field values on an object using the |
Beta Was this translation helpful? Give feedback.
You can reference custom field values on an object using the
cf
attribute.