A form with images - logos, product photos, or illustrations. You'll learn how to display uploaded assets in your forms with full control over size and alignment.
Image Assets is a PRO feature. You can upload up to 50 images (5MB each) in your account settings.
This tutorial uses formts_logo - a sample asset available for everyone to try.
Display an image using addImage() with an assetId. The asset ID matches what you set when uploading the image.
alt text for accessibility. It describes the image for screen readers and shows if the image fails to load. Use the size option to control image dimensions. Best practice: set only width OR height, not both!
Control horizontal alignment with the alignment option: left, center, or right.
Add a label to display text above the image, just like other form fields.
Use isVisible with a callback to show or hide images based on form state.
Let's build a complete contact form with a logo header!
width and height in pixelsTo use your own images:
Great job! You've learned how to add images to your forms. Ready to learn more?
Continue to Spacers & DividersOther learning paths: