Before/After Photos
Overview
A photo gallery plus an upload form so technicians can add Before and After pictures with a caption straight from their phone camera.
Upload and compare job photos.
When to use
- Prove the work done with before and after shots.
- Keep a visual record for insurance or disputes.
- Share photos with the customer later via the portal files.
Quick start
- Drag Before/After Photos onto a job page.
- Preview, choose a photo, pick Before or After, add a caption and press Upload photo.
- On a
/jobs/:idpage, filter the inner Gallery by Job = page parameter id.
Recommended data
Creates Customers and Jobs first (if missing), then Job Photos: Photo (image, required), Kind (Before or After), Caption and Job (link to Jobs). Relationship: One Job → Many Job Photos. Uploaded images are stored as app assets.
- Customers — fields: Name, Email, Phone, Company, Status; status pipeline on Status.
- Jobs — fields: Title, Customer, Customer Email, Address, Scheduled For, Technician, Status, Notes; status pipeline on Status; relationships: Jobs → Customers (each job belongs to one customer).
- Job Photos — fields: Photo, Kind, Caption, Job; relationships: Job Photos → Jobs (each job photo belongs to one job).
Layout rules
- Can contain any component.
- Can be placed in any container (page, section, card, row, column, grid…).
Properties
Card heading above the gallery and form.
Default: Before/After Photos
Entity photos are stored in. Defaults to Job Photos.
Data binding
A Gallery (4 columns) bound to all Job Photos (image = Photo, caption = Caption) and a create Form with the inputs Photo, Kind and Caption that shows the toast Photo added.
Events
This block is built from ordinary components. Select one of them (in Layers) to change what happens on these events:
- On submit
- None on the block; the inner Form creates the record after the image is uploaded.
Responsive behavior
Uses 12 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.
Permissions
Use the Permissions tab to show this component only to some roles. Hiding a component is a convenience, not security — the server always checks who may read or change data.
Mobile behavior
- The image upload input can open the phone camera directly.
Common patterns
- Add the Job input to the form (or a hidden default from the page parameter) so photos are tied to the job.
- Show the same photos to the customer with a Gallery on a portal page filtered by their jobs.
Limitations
- The upload form does not set Job by default; add the input.
- There is no side-by-side comparison layout; the gallery shows all photos in order.
Troubleshooting
Why: The file is too large or not an image.
Fix: Use a JPG or PNG under the upload limit configured for your app.