Announcement

Collapse
No announcement yet.

How to check in a PDF template if a field image is not empty?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • lazovic
    replied
    Hi Glasul Vietii,

    Please try this code:
    Code:
    {{#if buletinMamaPoza}}
    
    {{imageTag buletinMamaPozaId}}
    
    {{/if}}

    Leave a comment:


  • How to check in a PDF template if a field image is not empty?

    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&nbsp;</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&nbsp;</span><span' in {{#if&nbsp;</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&nbsp;<].[span><span]}} is not closed

    SO HOW TO CHECK IF AN IMAGE FIELD IS NOT EMPTY ?

    Thank you very much for your support!
    Attached Files
Working...
X