Hi, there
We were wondering if you can help us with something?
We try to check in a PDF Template if a field image is not empty than print that page with the person image
Our code:
{{#if personImage not empy}}
{{imageTag personImageId}}
{{/if}}
personImage field is buletinMamaPoza
We get this error:
500 Internal Server Error
Error in 'if </span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">buletinMamaPoza not empy</span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">': expect '"' but the token ended!! Wrong variable naming as 'if </span><span' in {{#if </span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">buletinMamaPoza not empy</span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">}} ! You should wrap ! " # % & ' * + , ; < = > { | } ~ into [ ] Unexpect token {{/if}} ! Previous token {{#[if <].[span><span]}} is not closed
SO HOW TO CHECK IF AN IMAGE FIELD IS NOT EMPTY ?
Thank you very much for your support!
We were wondering if you can help us with something?
We try to check in a PDF Template if a field image is not empty than print that page with the person image
Our code:
{{#if personImage not empy}}
{{imageTag personImageId}}
{{/if}}
personImage field is buletinMamaPoza
We get this error:
500 Internal Server Error
Error in 'if </span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">buletinMamaPoza not empy</span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">': expect '"' but the token ended!! Wrong variable naming as 'if </span><span' in {{#if </span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">buletinMamaPoza not empy</span><span style="color: rgb(51, 51, 51); background-color: var(--input-bg);">}} ! You should wrap ! " # % & ' * + , ; < = > { | } ~ into [ ] Unexpect token {{/if}} ! Previous token {{#[if <].[span><span]}} is not closed
SO HOW TO CHECK IF AN IMAGE FIELD IS NOT EMPTY ?
Thank you very much for your support!
Comment