Use miniExtensions Field Validation to require a note when someone marks a photo as unavailable, while keeping the note visible and optional for everyone else. This example lets a reviewer distinguish “no photo could be taken” from an empty upload field.
Build a small intake table
Start with an Airtable base you can edit, connected to miniExtensions, and permission to publish a practice form. In Airtable, create an Inspection Notes table with Inspection reference (single-line text), Evidence status (single select), Photo (attachment) and Evidence note (long text). Add two Evidence status options: Photo supplied and Photo unavailable. Start a standalone miniExtensions Form on this table, add those fields and require an Evidence status selection. Keep Evidence note visible and leave its ordinary Required toggle off.
Use a plain description under the note: “Explain why a photo is unavailable, or add context if you have it.” Do not make people enter placeholder text just to continue when a photo is available.
Set up the two acceptable paths
Select Evidence note in the Form Builder and open Field Validation. Add an AND group with two conditions: Evidence status is Photo unavailable, and Evidence note is not empty. Outside that group, add the opposite condition, Evidence status is not Photo unavailable, and combine it with the first group using OR. The overall rule is valid when a note accompanies Photo unavailable or the submission is on a different path.
If the Photo supplied choice should also require a file, select the Photo field, configure Conditional Field so it shows only for Photo supplied, then turn on Required for the Photo field. Required applies while the field is visible. The note stays visible in both paths, which is why it uses validation rather than conditional visibility.
Check both paths before you share the form
In a test copy with fictional data, select Photo unavailable and leave the note empty. Submission should fail on the note. Enter “Camera unavailable during inspection” and try again. For Photo supplied, test without a note but with a file; the note should not block submission. With the optional Photo rule enabled, Photo supplied without a file should fail on the attachment instead.
Check what arrives in Airtable and run through the published form with both choices before sharing it. Do not use conditional visibility as proof that an old value has been deleted, especially if you later adapt the form to edit existing records. Keep the status as the reviewer’s explicit indicator of which evidence pathway was used.
Write the expected results before configuring validation
For the practice inspection, use fictional reference INS-101 for a site where a photo is available and INS-102 for a site where it is not. The reviewer needs an explicit reason for INS-102, but should not force the person submitting INS-101 to type “not applicable” into a note just to continue.
The proposed rules are separate. Evidence status must have an answer. Evidence note is always visible, but becomes necessary only when status is Photo unavailable. Photo may appear only on the Photo supplied path, with a file required while visible. This tutorial does not infer the selected status from attachment contents.
| Selected status | Evidence note | Photo with the optional photo rule |
|---|---|---|
| Photo unavailable | Must contain an explanation | Not requested on this path |
| Photo supplied | Optional context | Must contain a file |
| No status selected | Not a valid final submission | Status must be answered first |
Keep this small table beside the configuration while you work. It makes a wrong AND/OR arrangement easier to spot than repeatedly changing settings until one sample happens to submit.
Create the fields with types that match their jobs
Use Inspection reference as the primary single-line text field so values such as INS-101 remain identifiers. Evidence status is a single select with exactly the two choices used in this example. Photo is an attachment, not a URL field. Evidence note is long text so the explanation can be more than a short code.
Add Created at as created time if staff needs to distinguish sample submissions, plus Reviewer as collaborator and Review outcome as single select for internal use. Do not add those review fields to the public input. The submitter explains what happened; the reviewer decides whether the explanation is sufficient.
Start with the create-new-record standalone Form. Under Share, allow creating records and disable updates to existing records for this exercise. The creation and editing guide distinguishes those controls from child-form settings. Keep the first implementation independent of Portal views and inline editing.
Check the note rule as a logical expression
The intended condition is: (Photo unavailable AND note is not empty) OR (status is not Photo unavailable). The first group permits the unavailable path only with a note. The second condition permits the other path without demanding one. The ordinary Required toggle on Evidence status prevents the blank-status case from becoming a valid final submission.
Open Evidence note’s Field Validation section. Inside one condition group, choose Evidence status is Photo unavailable and Evidence note is not empty, using AND. Outside that group, choose Evidence status is not Photo unavailable. Set the overall relationship between the group and the outside condition to OR, as described in the linked conditional-validation guide.
Do not combine all three conditions with AND: a status cannot be both Photo unavailable and not Photo unavailable. Do not put note is not empty alone in an OR expression with the unavailable condition: that would permit an empty note just because Photo unavailable was selected.
Keep visibility, required answers and validation distinct
The note remains visible so someone with a photo can still add useful context. Leave its ordinary Required toggle off. If you enable Required there, the note would be required on both paths and the conditional-validation logic would no longer express the intended user experience.
The Photo field follows a different pattern: show it when Evidence status is Photo supplied, then require it while visible. An attachment restriction may limit accepted categories, but it does not determine whether the image is relevant or adequate. Keep that judgment with the reviewer.
Validation must operate on a field the user can correct. Do not turn Evidence note read-only while expecting this rule to make the submitter fix an empty value. The Field Validation reference explains the treatment of read-only fields and supported conditions.
Run a matrix of submissions and inspect the saved rows
Publish the practice configuration, open its end-user URL and start a fresh submission for each case. First leave Evidence status empty. Then choose Photo unavailable with an empty note, followed by the same choice with a concrete explanation. The first two should be blocked; the explained unavailable case should save.
Next choose Photo supplied with an empty note and attach a harmless sample image you may use. It should save without a note. With the optional photo rule enabled, repeat without the file; that case should be blocked by the attachment requirement. Also submit Photo supplied with both a file and a note, so the optional context path is covered.
Inspect Airtable after each successful case. Confirm the reference, selected status, note and attachment belong to the intended row. Count successful submissions rather than assuming every click on Submit created a record. In a live rollout, use your own practice data and remove only records you intentionally created for that purpose.
Troubleshoot the branch that failed
If Photo supplied is blocked by an empty note, check the note’s ordinary Required toggle and the overall OR relationship. If Photo unavailable saves without a note, inspect the two conditions inside the AND group and confirm the selected status matches the intended choice.
If a file is required when Photo is hidden, review the attachment’s visibility condition and confirm you are checking the latest published configuration. If the builder works but the shared URL behaves differently, publish the changed configuration again and reopen the end-user link. The sharing guide explains that saved configuration changes remain in Draft until publication.
When adapting this to an edit form, add separate checks for an existing photo and note while switching status in both directions. Hiding an input is not evidence that its stored value disappeared. Keep the status explicit, inspect the saved record and decide how your team handles an earlier attachment on a later unavailable report.
Make the reviewer’s next step explicit
The form establishes that an explanation was supplied when requested; it does not establish that the explanation is acceptable. Give reviewers a view of Photo unavailable submissions with their references and notes, and a separate route for missing context or follow-up. Keep review decisions out of the submitter’s input.
Use this pattern when one always-visible field is optional in some cases and necessary in another. Use conditional visibility with ordinary Required when the entire question should appear only on one path. The useful outcome is a complete evidence choice with an understandable reason, rather than a form full of compulsory placeholder answers.


