Formcrafts - a form and survey platform for Salesforce, HubSpot, etc
  1. Templates
    1. All templates illustration
      All templates
    2. Application forms illustration
      Application forms
    3. Calculation forms illustration
      Calculation forms
    4. Lead generation forms illustration
      Lead generation forms
    5. Customer service illustration
      Customer service
    6. Evaluation forms illustration
      Evaluation forms
    7. Survey and feedback illustration
      Survey and feedback
    8. Operations forms illustration
      Operations forms
    9. Payment forms illustration
      Payment forms
    10. Booking and registration illustration
      Booking and registration
    11. Salesforce forms illustration
      Salesforce forms
    12. Other forms illustration
      Other forms
  2. Features
    1. 18 Form Fields illustration
      18 Form Fields
    2. 19 Integrations illustration
      19 Integrations
    3. Conditional Logic illustration
      Conditional Logic
    4. Multi-step Forms illustration
      Multi-step Forms
    5. Calculations illustration
      Calculations
    6. Partial Submissions illustration
      Partial Submissions
    7. Save & Resume illustration
      Save & Resume
    8. Payments illustration
      Payments
    9. Hidden Fields illustration
      Hidden Fields
    10. Engagement analysis illustration
      Engagement analysis
    11. Dynamic Dropdowns illustration
      Dynamic Dropdowns
    12. Dynamic Checkboxes illustration
      Dynamic Checkboxes
    13. Dynamic Tables illustration
      Dynamic Tables
    14. Multilingual forms illustration
      Multilingual forms
  3. Pricing
  4. Help
  5. Login
  6. Signup
    →
  • Help index
  • Features
    • Conditional logic
    • Prefill forms
    • Multi-step forms
    • Calculations
    • Partial submissions
    • Field references
    • Save and resume
    • Hidden fields
    • Dynamic lookup
    • Dynamic tables
    • Dynamic multiple choice
    • Dynamic dropdowns
    • Workflows
    • Multilingual forms
    • Privacy mode
    • Success message
    • Form redirect
    • GA/GTM
    • Accept payments
    • Linked forms
    • Disable form
  • Styling
    • Custom CSS
    • Custom fonts
    • Color scheme
    • Form background
  • Analytics
    • Test mode
    • Overview
    • Field analytics
    • Form engagement
  • Workflows
    • Send emails
    • Form redirect
    • Success message
    • Webhooks
    • Create PDF
    • ActiveCampaign
    • Asana
    • Mailchimp
    • Front app
    • Freshdesk
    • Google Sheets
    • Pipedrive
    • Linear
    • Klaviyo
  • Sharing
    • Custom form link
    • Embed on a page (inline)
    • Embed on a page (popup)
    • Embed in emails
    • Embed on WordPress
    • Embed on Shopify
    • Embed on Squarespace
  • Salesforce
    • Overview
    • Create records
    • Create multiple records
    • Update records
    • Related records
    • Dynamic picklists
    • Dynamic checkboxes
    • Dynamic tables
    • Attach files
    • Create PDFs
    • Form prefill
    • Experience Cloud Embed
    • Record Page Embed
  • HubSpot
    • Overview
    • Create contact form
    • Create lead capture form
    • Create customer survey
    • Prefill HubSpot form
    • Embed on HubSpot page
    • Uninstall
  • Zendesk
    • Create ticket form
    • Create CSAT survey
    • Embed on Help Center
    • Prefill ticket form
  • Admin
    • Users
    • Custom domain
    • Custom email domain
    • Vanity subdomain
    • Subscription
  • Developers
    • Embed Library
    • API keys
    • API v1
    • API v2
  • Others
    • Partner program
    • GDPR compliance
    • Workflow logs
    • White labeling
    • Using JSONPath
    • Form speed
    • Zapier
    • Entity Change Notice
  • Contact
  1. Help
  2. ›
    Salesforce
  3. ›
    Dynamic checkboxes

Create Dynamic Checkboxes

On this page
  1. Introduction
  2. Basic setup
  3. Option sources
    1. Source: Object
    2. Source: SOQL query
    3. Source: Picklist
  4. Notes
    1. Allow multiple selections
    2. SOQL format
    3. Dynamic checkboxes + form prefill

Introduction

Dynamic checkboxes are multiple choice fields that fetch their options from Salesforce in real-time. The data source can be a Salesforce object, a custom SOQL query, or a picklist field. You can add them to any Salesforce form ↗ created in Formcrafts.

Dynamic checkboxes are a great fit when you want users to visually browse and select from a set of Salesforce records — for example, choosing products from a catalog, selecting team members, or picking from a list of active accounts.

  • Option images: Each option can display an image fetched from Salesforce, making it easy to build visual selection experiences like product pickers.
  • Option description: In addition to a label, each option can show a description — useful for displaying extra context like a price, status, or account name.
  • Allow multiple selections: You can allow users to select more than one option, with optional minimum and maximum selection limits.
  • Dependent lookup: The data source can be made dependent on another form field. For example, show only the products that belong to the category selected in an earlier field.

Here is an example. The first field shows available options for Campaign Type, and the second field shows a list of active campaigns belonging to the selected type:

Dynamic checkboxes example

Basic setup

On your Formcrafts dashboard ↗ click on Add Form → Start from scratch. Enter a Form name and hit enter. This will create a new form.

You can also create a new form by clicking on Add Form → Use a Template and selecting a template. This would allow you to skip this step.

Add a multiple choice field to your form using the Add field button on the top-left corner of the form editor.

Next, enable the Salesforce integration for the form. Click on Settings → Integrations → Enable integration, find Salesforce, and connect your Salesforce organization.

Enable Salesforce integration
Enable Salesforce integration

Option sources

Click the cog button next to the multiple choice field to open the field settings. Go to Options → Source, and select Salesforce.

Dynamic checkbox sources
Selecting Salesforce as the source

You can now choose the source type within Salesforce.

Source: Object

The object source fetches records from a Salesforce object. For example, select Campaign as the object and the field will display all your Salesforce campaigns as selectable options.

Column mapping — configure which Salesforce fields map to each option property:

Label (required): The text displayed on each option. For example, the campaign name.

Value (optional): The value submitted with the form when an option is selected. Defaults to the option label if left blank. In most cases this should be the record ID.

Description (optional): Additional text shown beneath the label. For example, a campaign description or status.

Image (optional): A URL field from Salesforce used to show an image alongside the option. For example, a campaign image.

Dynamic checkbox object source config
Source: Salesforce object

You can also add filter rules to limit which records are fetched. Filter rules allow you to reference other form fields, so the available options can update dynamically based on earlier field values.

Source: SOQL query

The SOQL source fetches options using a Salesforce Object Query Language query, giving you full control over which records and fields are returned.

For example, fetch a list of active campaigns with their names and statuses:

SELECT Id, Name, Status FROM Campaign WHERE IsActive = true

The fetched columns can be used as the option’s label, value, description, and image. Refer to columns directly by name (e.g. Name) or combine them using curly braces (e.g. {Name} — {Status}).

Your query can also reference form fields to make the options dependent on user input. For example, fetch campaigns belonging to the type selected in a previous field:

Dynamic checkbox SOQL source config
Source: SOQL

Formcrafts will watch the referenced field and re-fetch options whenever its value changes.

Source: Picklist

The picklist source fetches the available values from a Salesforce picklist field and renders them as multiple choice options. For example, fetch the values of the Salutation picklist field on the Account object.

Select the object and then the picklist field you want to use. The field’s picklist values will be fetched and displayed as the options.

The picklist source also supports an optional Record Type filter, which can be a static value or reference another form field.

Dynamic checkbox picklist source config
Source: Picklist field

Notes

Allow multiple selections

By default the multiple choice field only allows a single selection. Enable Allow multiple selections in the General tab to let users pick more than one option. You can also set a Minimum and Maximum number of selections to enforce a specific range.

SOQL format

The SOQL query is case-insensitive. Make sure the column names in your query exactly match the Salesforce API field names.

Dynamic checkboxes + form prefill

You can combine dynamic checkboxes with the Salesforce prefill feature. For example, pre-select the products already associated with a Salesforce record when the form loads. Learn more about Salesforce form prefill.

Minimal, fast, and powerful. Try now.
Formcrafts - a form and survey platform for Salesforce, HubSpot, etc

Bodhweb GmbH,
Moltkestraße 105,
40479 Düsseldorf

Salesforce AppExchange partner logo HubSpot app partner logo
Templates
Application formsLead generation formsSurvey & feedback formsEvaluation formsSupport request formsBooking & registrationContact forms
Comparisons
vs AllFormAssemblyTypeformJotformWufooSurveyMonkey
Features
Conditional logicSalesforce formsHubSpot formsZendesk ticket formsEmail formsIntegrationsForm fields
Resources
Help centerBlogDeveloper APIGDPRStatusReport abuseContact us
Company
About usNonprofitCase studiesSecurityTerms and privacyImpressum