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 tables

Create Dynamic Tables

On this page
  1. Introduction
  2. Basic setup
  3. Table sources
    1. Source: Object
    2. Source: SOQL query

Introduction

Dynamic tables allow you to create powerful data tables in your forms with variable rows, remote fetching, and built-in calculations. Here are some features at a glance:

Dynamic tables in Formcrafts have some additional features like:

  • Unlimited options: While the table itself displays a limited number of rows, you can apply a filter via another form field to create a search-like experience.
  • Different column types: Table columns can be of different types like text, numeric, dropdown, date, formula, and read-only text.
  • Column-level calculations: You can use the formula column type to add calculations based on other columns in the same row. This could be simple calculations like total price (quantity * unit price), or complex formulas using built-in functions.
  • Fetch related data: Using SOQL as the data source, you can fetch related data from Salesforce objects. Example, you have a table of contacts, and you want to show the related account name for each contact in a different column.

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.

Now add a table entry field to your form using the Add field button on the top-left corner of the form editor.

Next we need to enable Salesforce integration for the form. Click on Settings → Integrations → Enable integration, and find Salesforce. This will open a popup window where you can connect to your Salesforce organization.

Enable Salesforce integration
Enable Salesforce integration

Table sources

Fetch table data directly from your Salesforce CRM. You can either query a specific object or use SOQL (Salesforce Object Query Language) for complex queries and dynamic parameters.

Source: Object

Available options:

  • Salesforce object: An object like Lead, Contact, Account, etc.
  • Filter rules: Optional rules to filter the records. If no rules are added, all records from the object will be fetched (up to 50)
  • Column mapping: Map table columns to fields in the returned data

In this example, we have two form fields:

  • Created after: Date field where user can select a date
  • Lead source: Multiple choice field where user can select one or more lead sources

The table field config filters leads based on the values selected in these two fields.

Table field config with Salesforce Object source
Table field config with Salesforce Object source

When the user selects a date and lead source, the table fetches leads from Salesforce that match these criteria. When either field is updated, the table data refreshes automatically.

Dynamic table populated from Salesforce object

Source: SOQL query

This option provides more flexibility since you can write SOQL to fetch or filter based on related objects, and apply complex conditions.

Available options:

  • SOQL query: Use @ to reference other form fields in the query
  • Column mapping: Map table columns to fields in the returned data

Here is an example that uses SOQL to fetch contacts where the account name partially matches a form field value:

SELECT name, email, account.name FROM Contact WHERE account.name LIKE '%@Filter by account%'
Table field config with Salesforce SOQL source
Table field config with Salesforce SOQL source

When the user types in the “Filter by account” field, the table fetches contacts from Salesforce whose account name matches the entered text. The table data refreshes automatically as the user types.

Dynamic table populated from Salesforce data

Learn about other features of dynamic tables →

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