In Anki I am trying to hide a third field if it is empty. This field is named Ref. In the styling view of a card, accessed by Edit > Cards, I have the following HTML snippet in the back template:
<a href="{{Ref}}">Link</a>
What I wish to know is how to hide the field if it is empty. There is the possibility to add Javascript to the card field, but there is no element inspector in the program.
What I ended up doing was the following:
{{#Ref}}<a href="{{Ref}}">Link</a>{{/Ref}}