Ramon Mol Posted January 26, 2017 Posted January 26, 2017 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.
opentype Posted January 26, 2017 Posted January 26, 2017 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}}
Ramon Mol Posted January 26, 2017 Author Posted January 26, 2017 Great!! That fixed it! Cheers @opentype
Recommended Posts
Archived
This topic is now archived and is closed to further replies.