[Help] Automatically hide a Button on condition

Hi,
I have manually added a ‘Button’ to reveal a image from a ‘Field’ named {{Photo}} (using JavaScript). I don’t want the ‘Button’ when the ‘Field’ is blank. How can I do it?
image

This text is always shown.

{{#FieldName}}
    This text is only shown if FieldName has text in it
{{/FieldName}}

{{^FieldName}}
    This text is only shown if FieldName is empty
{{/FieldName}}

Check out the docs for more details

4 Likes