Objects and fields reference

Object model overview

3B Forms stores form definitions, styles and submission audit trails in custom objects. Form definitions and themes are not stored in a field; they are stored as Salesforce Files attached to the form record. Business records created by submissions live in whatever standard or custom objects the form maps to.

Object Type Purpose
Form__c Custom object A form's identity, availability window, context object and style
Form_Style__c Custom object Reusable custom CSS applied to forms
FormResponse__c Custom object An audit record for every form load and submission
Forms_General_Settings__c Custom setting AI, captcha, files, address and display configuration
Security_Settings__c Custom setting Package managed values and deprecated credential fields
Log_Entry__c Custom object Apex log entries
Response_Mapping__mdt Custom metadata Legacy response mapping config, superseded and unused

Form__c

Holds a form's identity. The form definition itself is a File named Template.3bt attached to this record, and the theme is a File named theme_config.json.

Field Type Use
Object_Name__c Text API name of the primary object the form fills. Set from the builder's context object
Form_Style__c Lookup to Form_Style__c The custom CSS record applied to this form
Date_Available_Start__c Date Start of the availability window, defaults to today
Date_Available_End__c Date End of the availability window

When a form is loaded live, availability is checked against the two dates. Availability is not enforced in preview mode.

Form_Style__c

Field Type Use
Custom_Code__c Long text Raw CSS applied to the rendered form at load time

The CSS is edited on the Form Style record itself, then applied to any form that looks up to it. See Form theming and custom CSS.

FormResponse__c

Created when a form is loaded and updated through its lifecycle. It is the audit trail: it records device and browser details, the version rendered, the outcome, and links to the records created.

Field Type Use
Form__c Lookup to Form__c, required The form this response belongs to
Type__c Picklist, required Lifecycle state: COMPLETE, DRAFT, AUTOSAVE, FAILED
Data_Version_ID__c Text The form version (a file version id) that was rendered. Pins the response to its definition
PDF_Version_ID__c Text The PDF template version (a file version id) this submission was merged into. Empty when the form has no PDF template. See PDF template merging
New_Record_ID__c Text, label Main Record ID The id of the record the submission created or updated
Main_Record_DML_Operation__c Text Whether the main record was an Insert or an Update
Account__c Lookup to Account Auto populated when the Main Record is an Account
Contact__c Lookup to Contact Auto populated when the Main Record is a Contact
FormJSON__c Long text Response JSON storage
Error_Type__c Picklist Database or Console, when a submission fails
ErrorMessage__c Text The failure message
Fatal_Bug__c Checkbox Marks a fatal client error
Preview_Submission__c Formula A link that opens this response in the preview app
Package_Version__c Text The package version, used for support diagnostics
IPAddress__c Text Submitter IP
Browser__c, Browser_Version__c, Operating_System__c, Screen_Size__c, Full_Navigator__c, System_Details__c Text Device and browser capture
StartTime__c, LastUpdateTime__c, Form_Live_Duration__c Date/time, number Timing capture
Preview_Submission__c Formula Opens the preview page for this response

The lookup auto population is schema driven: any custom lookup you add to FormResponse__c is filled automatically when the Main Record is of the matching object type. See Form response and automatic mapping.

Log_Entry__c

Field Type Use
Category__c Field Log grouping
Type__c Field Log severity or kind
Description__c Field Log detail

Response_Mapping__mdt

A custom metadata type with Active__c, Form_Response_Object__c, Mapping_Object__c and Relationship_Field__c. It ships with two records, Account Link and Contact Link, that describe the Account and Contact mappings. This type is not read by current code. The live auto mapping is done dynamically by the response trigger. Treat these records as documentation of intent, not active configuration.

Feature parameters

Four integer license feature parameters meter usage for the managed package: Number Forms, Successful Submissions, Failed Submissions and Draft Submissions. They are incremented as forms and responses are created and back filled on upgrade. They are not configuration.