Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 26, 20178 yr 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.
January 26, 20178 yr 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.