Objects, fields, Apex classes, permission sets and URLs in your org keep their Derby Forms-prefixed API names; they appear as code literals in this guide and are explained in docs/KEPT-IDENTIFIERS.md.
A practical guide for Salesforce administrators and business users who build, publish, and operate forms.
1. What Derby Forms does—and does not do #
Derby Forms is a native Salesforce form builder. You design forms in Salesforce, map answers to Salesforce records, publish a version, and accept submissions through Salesforce Lightning or an Experience Cloud site. Form definitions, submissions, mappings, drafts, and events use Salesforce records and platform features.
Derby Forms is native-only: it does not send form data to a third-party form service and does not load third-party scripts or CAPTCHA providers. Its native bot protections (a hidden honeypot, minimum completion time, per-form rate controls, and optional email verification) raise the cost of casual automation; they do not prove a visitor is human. Payments are not supported.
Salesforce org limits, permissions, sharing, email deliverability, storage, and Experience Cloud configuration still apply. Derby Forms does not establish a submission retention period or a daily submission allowance. An editor can save drafts without changing the live form; publish a new version to change what visitors receive.
2. Install and complete first-time setup #
Use the install link supplied for your Derby Forms distribution:
0.1.61.2 (04taj000000sYEPAA2): install with the link we send when you request early access
After Salesforce completes installation:
- Open the Derby Forms app from the App Launcher. If it is not visible, ask your Salesforce administrator to make the app available to your profile.
- Assign
Builderto people who build and publish forms. Setup checklist, configured-state reads and signing-secret generation require Manage Derby Forms Setup (Manage_Setup), included inBuilder. Without it, the message is Derby Forms setup access denied. Assign the documented admin permission set to the setup operator; never grant setup permission to a guest. Signing secrets are not returned to the browser. - Assign
Runtimeto authenticated users who need to submit forms or use runtime capabilities. Give users only the access required for their role. - Do not assign the builder or Submission Console to a site guest user. Public visitors use the dedicated guest host and guest permissions instead.
- Confirm that target objects and fields are accessible to the intended submission user. Derby Forms applies Salesforce access checks; a mapping does not grant object or field permissions.
Set up a public guest form #
Public forms require additional Salesforce configuration. A Salesforce administrator should:
- Create the org-local Derby Forms signing configuration required for guest forms. The package does not create its signing secret automatically. Keep signing material private; never put it in a form definition or page.
- Create read sharing for published public Derby Forms forms so the site guest user can load them.
- Create or use a public Build Your Own (LWR) Experience site and set it up once for every public form (see One-time site setup for hosted links below). Public forms use a free Experience Builder site in your own org on Enterprise, Unlimited, Performance and Developer editions; guests use no licence, and nothing has to be purchased for public forms (paid community licences matter only for signed-in portal users). Professional Edition is unverified: confirm in your org. A page with a fixed Public Form Slug still shows only that form, and existing pages keep working unchanged.
- Grant the site guest user the packaged guest access needed for the host, renderer, and guest controllers. Do not grant the guest access to the builder or internal submission console.
- Keep Lightning Web Security enabled and CSP Strict. Do not add third-party head scripts or Trusted Sites for Derby Forms.
- If public forms include file fields, enable Allow site guest users to upload files in Setup → Salesforce Files → General Settings, enable Use the File Upload Lightning web component for LWR sites, and in the site Workspace Administration → Preferences, enable Allow guest users to access public APIs and Let guest users view asset files, library files, and CMS content available to the site. Test both the upload and the final submission/file link in your own site.
- Test the page as a guest, including keyboard navigation, validation, completion status, and a failure case, before sharing it publicly.
One-time site setup for hosted links
- In Setup → Digital Experiences → Settings, enable Digital Experiences, then create the LWR site and make it publicly accessible.
- In Experience Builder, add ONE page (for example with the URL
/form) and place Derby Forms Guest Host on it. Leave Public Form Slug empty and turn on Take the form from the page address. Set Native guest API site path to the site's own path segment. This one page then serves every published public form at<site>/form?formSlug=<slug>. - Publish the site.
- In the builder's Publish → Share and embed panel, a user with
Manage_Embedchooses the site, enters the route page path (/form) once and selects Save page path.
After this, builders publish public forms and copy their hosted links without Experience Builder access (see Public hosted link in section 6).
The site host issues a short-lived signed render proof. Default protections include a honeypot and a three-second minimum fill time; the form owner can adjust the minimum from 0 to 60 seconds and can enable optional email verification. Email verification depends on the subscriber org's Salesforce email service and limits; it verifies inbox control, not identity. These measures are not CAPTCHA and cannot guarantee human submissions.
3. Build a form #
Open the page containing the Derby Forms builder and select Details to create a form. A new form starts with Details available; other editor pages become available as the form is set up.
Details #
Enter the form's identifying information and choose its target Salesforce object. Keep field keys stable: rules, formulas, and answer mappings refer to keys, not just the visible labels. Use clear labels and mark only genuinely necessary answers as required.
Build #
In Build, add and arrange fields. Use Search fields (placeholder Label or API name) to find fields, or use Filter fields and its Availability, Type, Required only, and Suggest required filters. Related objects can be explored with Browse fields; Use as target object changes the target object. Available and placed fields are shown separately, and unsupported candidates appear under Can’t be added.
Derby Forms supports text, multi-line text, rich text, signature, email, phone, URL, number, currency, percent, date, date/time, time, checkbox, rating, name, address, custom, picklist, multi-select picklist, checkbox group, radio, lookup, file, hidden, section, repeat, and Flow fields. The exact choices shown depend on the selected object and field availability. Keep a form definition to 150 fields or fewer. File fields need an allowed MIME policy; guest uploads and authenticated uploads have different rules (see Uploads below).
For choices, define the accepted option values and the labels visitors see. For lookups that visitors can search on a public form, configure the explicit guest-safe object and display-field allow-list; publishing blocks unsafe public lookup exposure.
Logic #
Use Logic to add conditional rules after the fields they use exist. Select Add a rule, then set its Action, target, and conditions. Rules save with the draft and affect the live form only after publishing.
Formulas are separate from arbitrary code. Invalid formula expressions and dependency errors now produce explicit validation errors. Correct the expression and referenced field keys, save and validate again; do not assume an invalid formula was silently ignored. They use field references such as {annual_amount}, arithmetic and supported functions (including IF, COALESCE, SUM, COUNT, ROUND, TODAY, and date functions). Formula expressions are limited to 500 characters; a form can have at most 50 formulas, with a maximum expression depth of 20. Formula values are computed again on the server and are not trusted from visitor input. See the formula reference in the product documentation for full syntax and type behavior.
Theme #
Use Theme to preview and adjust the form's appearance. Available controls include Button style, Button radius, Field border, Field radius, Label position, and Page progress. You can work with a Reusable template and Save reusable template (colours, font, tokens, CSS). Custom CSS is available for styling; test the result in the actual host because the host page and Salesforce theme affect presentation.
Save your work as a draft #
Save the form definition as a draft as you work. A draft is not the visitor-facing version. Do not edit a published version in place; make and validate a new draft, then publish it when ready.
Versions #
Open Versions to review version number, status, creator, publish date, and submission count. Choose From version and To version, then select Compare to review differences. To reuse an earlier design, select that version and choose Restore as new draft. This creates a new draft; it does not change or republish the historical version. Use Discard draft only when you intend to remove the current draft.
Publish #
Use Publish readiness to review whether the selected version can be published. Resolve errors before using the publish action. Publishing activates the selected version and retires the previous published version; it does not edit that prior version.
4. Map answers to Salesforce records #
Open the version's mapping area and choose the write behavior:
- Insert creates a new target record.
- Update changes the selected existing record according to the mapping and its supported context.
- Upsert matches using a Salesforce external ID field; choose that external ID explicitly.
For each answer key, select the Salesforce destination field. Map only approved fields and review object permissions, field-level security, validation rules, and required fields. When mappings span related objects, place the parent mapping before a child mapping that needs the parent's record ID. Test with an authenticated submission before making the form public.
Derby Forms records which Salesforce records were created or linked by a submission. On supported record pages, Derby Forms Record Submissions shows submissions linked to the current record, subject to the running user's record access. The View submission action opens a read-only answer snapshot. Do not broaden sharing on submission records just to make a related submission appear.
Salesforce Duplicate Rules continue to apply. Derby Forms does not perform its own duplicate matching or merge. Decide whether each target object's rules should allow or block a duplicate insert, and make the visitor instructions consistent with that choice.
5. Validate and publish #
Before publishing:
- Save the draft.
- Run the builder's guest security scan and read all findings.
- Fix every ERROR finding (for example, an unsafe guest lookup, unapproved target, or incomplete file policy), save the revised draft, and scan again.
- Test mappings and formulas with a non-guest submission. For a public form, also test the guest flow on the intended Experience site.
- Confirm that the selected version is the draft you intend to release.
- Use the builder's publish action.
Publishing activates the selected version and retires the previous published version. Keep prior versions available. To roll back, restore or recreate a known-good draft, scan it, publish it as a new version, and test it; do not change historical published content in place.
6. Share a form #
Public hosted link #
After an administrator has set up the site once (One-time site setup for hosted links in section 2), a builder who holds only the Derby Forms builder and embed permissions shares a public form without Experience Builder access:
- Publish the form and mark it public.
- Open Publish → Share and embed and choose the site.
- Copy the Derby Forms hosted link (
<site>/form?formSlug=<slug>).
There is no per-form admin step, no Experience Builder access and no site republish when you publish another form. Only a Published form that is marked public opens from its link; any other address shows the message "Form could not be loaded." Test the link as a guest before sharing it publicly.
If your site uses a separate page per form instead, add Derby Forms Guest Host to the page, choose its Public Form Slug, and publish the site in Experience Builder.
Embed on another site #
In the form builder, open Publish → Share and embed. A user with Manage_Embed can configure embed enablement, allowed HTTPS origins (one origin per line), and the Experience site. Wait for the readiness checks, then copy the generated <derby-form> snippet. Do not hand-edit the snippet or its asset hash. Copy it again after a renderer upgrade.
Share and embed guest permission assignment keeps the Manage Embed/Manage Users and bound-site checks and now uses user-mode permission-set lookup and DML. The operator needs the corresponding Salesforce read/assignment access, including read access to the form being shared: the assignment reads the form with the caller's own access, so an operator without form read access is refused. Site/namespace display metadata also uses user mode; unavailable metadata falls back or fails closed. Do not grant additional setup permissions to the site guest as a workaround.
The panel's portal URL opens the Experience page; the snippet's runtime base URL serves the renderer and embed endpoints. They are different URLs. Publish the Experience site after changes and make sure the host page's CSP permits the configured origin. If the panel does not produce a snippet, check that the form is active, public, published, embed-enabled, has an allowed origin, and that its site and renderer are available.
Portal and prefilled links #
For a separate signed-in portal form, the site's Signed-in portal page path can point signed-in visitors to an existing same-site page; it does not grant access to records or forms. Keep the portal page's normal Salesforce permissions in place.
Grant-linked embed prefill is for a source record and a specific form, origin, and short lifetime. An authorized administrator issues a grant for 1–60 minutes; it is single-use. Add the exact host origin to the Salesforce org CORS allowlist before the browser makes the prefill request. Put the bearer in the URL fragment as directed by the integration, never in a query string or logs. If a visitor sees Prefill is unavailable, issue a new grant and check expiry, origin, form, and signing setup.
Record links are signed bearer links for an authorized Salesforce recipient, not anonymous guest links. They are one-use after successful submission and have a bounded expiry; publishing a new version invalidates links for the previous version. Treat all signed links as credentials and deliver them only to the intended person.
7. Save progress, resume, and uploads #
Drafts and resume links #
Authenticated save-later email locks the form in user mode: the user must be able to read that form. A resume link does not grant missing form access. Public guest resume remains restricted to a Published, public form and a private system ledger.
Authenticated users with Runtime can save a draft from the renderer. Public visitors may also save progress where guest draft support is configured. A resume link is a private, one-use bearer credential. Give it only to the same person; do not log it, place it in analytics, or expose it to unrelated page scripts. The host resumes the saved draft once. Expired, malformed, or already-used links fail closed; issue a fresh link rather than reusing an old one.
In the Submission Console, Partial submissions is a read-only view of saved progress. It does not reveal resume links.
Signatures and signer evidence #
Signature fields support drawn or typed signature entry with the configured consent. Signature text entry, consent and Clear have minimum 44-pixel hit areas. Text entry and Clear have explicit keyboard focus; Clear remains a disabled-aware native button with its existing wording and undo icon. Test keyboard operation in the actual Salesforce host. Separately, the optional signer-evidence setting records evidence on future final submissions and can place those evidence lines on the PDF receipt. It is off by default. If enabled, the observed network address may be a proxy address; the User-Agent is supplied by the browser and can be changed. Neither proves identity. Anyone who can open the receipt may see the evidence, so enable it only when that disclosure is intended. Changing the setting does not backfill earlier submissions or erase existing evidence.
Uploads #
If a guest file check says This file could not be checked. Choose it again., select the file again on the same page visit, form and field. Signed render proof binds the staged upload to that visit. The generic refusal discloses no file name or size. Wrong-type and size-limit messages remain actionable; do not reuse upload state from another page visit.
Authenticated forms support file fields subject to configured type and size checks. The native upload component is not supported in Lightning Out. Public guest upload is configuration-dependent and subject to Salesforce site settings and platform limits; verify the completed submission includes the file link. Do not assume an upload alone means the form submission succeeded. Guest submit routes that reject file attachments should not be bypassed; use a supported authenticated form for those paths.
8. Monitor submissions, alerts, and retries #
The submission recovery/search console requires Replay_Failed and read access to the queried forms, mappings, submissions and retained answer fields. Searches run in user mode and respect sharing and field-level security. Missing access can deny a query rather than return partial unauthorized data. Check the operator permission set, object/field access and record visibility before retrying; never grant broad Submission sharing merely to populate a search.
Open Derby Forms Submissions / the Derby Forms Submission Console. The console has Submissions, Partial submissions, and Prefill links tabs. In Derby Forms submission recovery, filter by Form, Status, From, To, Target object API name, or Search retained answers, then choose Search. Use Load more for additional rows or Export CSV when appropriate. Each query returns at most 200 rows; this is a page size, not a retention period.
Open a failed submission's event detail and error message before acting. Common causes include field/object permissions, mapping errors, Salesforce validation rules, a failed post-submit action, or a public-form protection check. Correct the cause before retrying.
For an eligible failed original, choose Replay with corrected answers, select the submitted or active version, enter the complete corrected answers, and confirm the replay. The failed input was rolled back and cannot be automatically reconstructed. Replay does not support files or repeat-section answers in this form. A successful retry creates a new submission and marks the original Replayed; a failed corrected retry leaves the original failed and cannot be used as another retry root. Verify both records and retain their IDs for your operational record.
Derby Forms can send configured notifications and save-later email, subject to Salesforce email configuration and limits. Save-later email is limited to three sends per draft and 15 per form per day. Derby Forms does not promise delivery independent of Salesforce email service availability. Do not put signed tokens or full sensitive answers in notifications.
9. Recipes and connected automation #
Derby Forms provides Salesforce-native records and actions for building automation around submissions. A common Flow pattern is a record-triggered Flow on Derby Forms Submission after save, when Status changes to Written. At that point mapped record links and the primary record information are already available. For all linked records, use Derby Forms: Get Submission Records with the submission ID. To find submissions from a target record, use Derby Forms: Get Submissions For Record with that record ID. Results respect the running user's read access.
A Flow can also subscribe to Submission_Received__e to react to Written or Failed submissions. Keep subscriber-owned notifications and external integrations in the subscriber's own Flow design; Derby Forms itself does not call out to third-party services.
The Form recipes page has a Recipes section. Review Salesforce requirements and mapping, What gets created, Dependencies, and Supported graph before selecting Create draft. The recipe creates an ordinary editable Derby Forms draft; it does not automatically publish it. After review, use Open in builder, complete the normal security checks, then publish through the regular lifecycle. Recipe availability and supported graphs depend on the current org requirements.
10. Migrate a form #
Migration requires Migrate_Forms plus read access to the source/destination forms, versions, themes, mappings and fields involved. Inventory queries use Salesforce user mode (CRUD, field-level security and record access). Grant only the missing documented access to the operator; do not broaden guest access or bypass a failed check. Only the creator may discard a migration draft; otherwise the message is Only the user who created this migration can discard it. Discarding also needs delete access on the four migration draft objects. Builder already has it; a custom permission set that allowed discard without delete access is now refused, so add the delete access to that set rather than working around the refusal. A record the user cannot see can produce a generic refusal instead.
Use the Derby Forms migration tools to export a form definition, plan an import, create a draft, and approve/publish through the normal lifecycle. Review the import plan and its errors before creating a draft. Confirm object and field mappings in the destination org, then run the guest security scan and test there. Migration does not make permissions, Experience sites, CORS origins, signing configuration, or org-specific sharing portable; configure and verify those separately. Keep the source form unchanged until the migrated draft has passed your target-org checks.
11. Troubleshooting and known limits #
- Publish is blocked: Read every guest security scan finding. Correct the definition or policy, save a new draft, and scan again; do not suppress findings.
- The form is blank: Check that the slug is correct and published, and that the Experience Guest Host uses the slug rather than a draft or version ID.
- A field stays invalid: Check the required answer, stable field key, and any Flow output key. Use the visible error message and renderer status region.
- A public submission is rejected: Check the published definition, guest allow-lists, minimum fill time, hidden honeypot, optional email verification, payload size, and rate window. Public forms do not support guest file attachments on routes that reject them.
- A submission failed after validation: Review the console event detail, mapping, Salesforce CRUD/FLS, target validation rules, and relevant Flow behavior before one controlled retry.
- A public duplicate was created or blocked: Review the target object's Salesforce Duplicate Rules. Derby Forms does not decide whether duplicates should be merged or blocked.
- A resume link fails: It may be expired, consumed, malformed, or for another form. Issue a new link; never disable signature or expiry checks.
- The embed is blocked: Check publication, allowed origin, host CSP/frame policy, site publication, and that you copied the current snippet from Share and embed.
- Older rows are missing from the console: A query shows up to 200 rows. Search with supported filters and check the user's record sharing before assuming a record was deleted.
- Accessibility differs in Salesforce's global header: Findings specific to Salesforce's global-header controls are a Salesforce platform limitation, not a Derby Forms control. Derby Forms' own form content still needs testing with keyboard and screen reader on the actual host page.
Important limits: a form supports at most 150 fields; formulas are limited to 50 per form and 500 characters per expression; each repeat section accepts at most 25 rows, with up to five repeat sections and an overall 1,000-answer guard. The serialized submission snapshot is limited to 65,536 characters, so long answers may reach the snapshot limit before the answer-count limit. Guest submission payloads are limited to 512 KiB; guest request rate controls and Salesforce guest/API/email limits also apply. Guest uploads allow at most five file entries with a declared size up to 10 MiB each, but site configuration and Salesforce limits still matter. These are enforcement ceilings, not guarantees that every maximum-sized combination will succeed.
Derby Forms has no supported payment processing, no third-party service integrations or CAPTCHA, no Derby Forms-defined daily submission quota, and no built-in retention schedule. Salesforce global-header accessibility findings are platform limitations. For troubleshooting, collect the form slug, published version, submission ID, event detail, timestamp, and safe reproduction steps; redact tokens, cookies, secrets, and full answer payloads.
Large import troubleshooting #
If an import contains many distinct destination record references, planning can return split the import into smaller batches to verify destination references safely. This is a bounded capacity refusal before exhausting Salesforce query limits, not a removal of supported imports. Split the import into smaller supported batches, review each new plan and destination mapping, and retry with the same authorized migration operator. Do not bypass the resolver or broaden guest/record access; normal CRUD, field-level security and sharing checks still apply. There is no universal promised reference count: available transaction headroom and reference types vary.
Released version #
Released production install: 0.1.61.2 (04taj000000sYEPAA2), install with the link we send when you request early access. The previous release was 0.1.60.1 (04taj000000sKcrAAE). Builds numbered 0.1.62.x are betas, not the production install. Namespace remains undecided. The cleanup guidance below describes this release.