Jump to content

Hiding custom field if not used in pages


Ramon Mol

Recommended Posts

Posted

Hey guys, 

How can I hide a custom field in a record when the field isn't filled? I have created a container which shows 3 different images. Thing is the container is also shown if there arent any images uploaded. So, how do I make sure that the container isn't shown if there aren't any images that have been uploaded. I know I need to add a {{if $record section in the code, but I am a bit confused on the complete piece of code. Is there someone that can help me? Thanks in advance.

Posted

The best way is to add the check directly in the field settings, not the template. 

Set the output for listing or display to “custom” and then add this condition to the field:

{{if $formValue}}

// your output

{{endif}}

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...