Displaying Image in FORM

Hi,

Can we display an image in the form (inside tasklist)? If yes, how ?
Is there any example available?

Thanks,
Tushar

Hey

Which type of forms are you using?
Where are you storing your images?

Hi,
absolutely! Heres some sample html you can use to display an image stored as a process variable;

        <div class="col-md-6">
            <img src="{{ camForm.variableManager.variable('PORTRAIT').contentUrl }}" class="img-responsive">
        </div>

Hence it gets a URL from the variable manager and renders it in a responsive container. If you want to reference a static image, then basic html will work, you just need to get the path to the image correct…

regards

Rob

2 Likes

@Tushar
If the image is part of your camunda deployment, you can reference the file similar to the way the external file was used in this scenario: