There are three ways to show an image, such as a logo, on a form. Choose based on where the image lives.
|
Method |
Best for |
Trade-off |
|---|---|---|
|
Image component (recommended) |
Most images. Upload it in the form builder. |
Stored inside the form, which grows in size |
|
HTML Element linking to a web address |
Images already published on your website |
Breaks if the image moves; the site must be allowed by your security headers |
|
HTML Element with embedded image data |
When you need full control of the |
Same size cost as the Image component, more work |
Use the Image component
See Image. Upload the picture on the component's Display tab and set its size.
Link to an image on a website
-
Add an HTML Element and set HTML Tag to
img. -
Under Attributes, add
srcwith the image's full address, for examplehttps://www.example.com/images/logo.png. Addaltwith a short description, and optionallywidth.
The image is loaded from that address each time the form opens. If it's moved or removed, the form shows a broken image.
GlobalForms' default security headers only allow images from the GlobalForms server itself. To load images from another site, add that site to the img-src part of the Content-Security-Policy header. See Security Headers.
Embed the image data
-
Convert the image to Base64 text with an image-to-Base64 tool.
-
Add an HTML Element, set HTML Tag to
img, and add asrcattribute whose value starts with the image type, for exampledata:image/png;base64,iVBORw0KGgo…
Like the Image component, the picture is stored inside the form. Keep it small.
Don't copy image files into the GlobalForms program folders on the server. Automatic updates replace those folders, and the files are deleted.