Skip to main content

Salesforce setup for Edge Webforms

This page covers the Salesforce-side configuration needed to receive webform submissions via Edge Webforms.

Custom fields on Trip

Create these subscriber custom fields on KaptioTravel__Trip__c. These are org-specific fields, not managed-package fields.

Webform fields (populated from form answers)

LabelAPI NameTypeNotes
Selected Tour and TierSelected_Tour_Tier__cText(255)Pre-populated from the tour page
Travel DateTravel_Date__cTextVisitor-entered travel date
Travel Date FlexibleTravel_Date_Flexible__cCheckbox+/- 5 day tolerance
Group Size AdultsGroup_Size_Adults__cNumberNumber of adults
Travel FromTravel_From__cTextDeparture city
Ready to BookReady_To_Book__cPicklistYes / Still exploring options
Best Time to CallBest_Time_To_Call__cPicklistDynamic options: Today HH:00, Tomorrow HH:00
Marketing Opt OutMarketing_Opt_Out__cCheckboxConsent withdrawal
Additional RequestsAdditional_Requests__cLong Text Area(5000)Free-text

B2B fields (populated for travel agent submissions)

LabelAPI NameTypeNotes
Is Trade EnquiryIs_Trade_Enquiry__cCheckboxTrue when submitted by an agent
Travel Agency NameTravel_Agency_Name__cTextAgency name
IATA / Accreditation NumberAgent_Accreditation_Number__cText(20)Used to match to Travel Agent Account

Intelligence fields (populated by scoring engine when enabled)

These fields are only needed when intelligence.enabled: true. They can be created upfront or deferred.

LabelAPI NameTypeNotes
Enquiry Priority TierEnquiry_Priority_Tier__cTextTier name (e.g. Urgent, Standard, Quick Quote)
Enquiry Priority ScoreEnquiry_Priority_Score__cNumber0-100
Enquiry Score TagsEnquiry_Score_Tags__cTextComma-separated tags
Enquiry Routing QueueEnquiry_Routing_Queue__cTextSuggested queue name
Enquiry SLA TargetEnquiry_SLA_Target__cTextSLA target (e.g. 1h, 4h)

Page layout

Add a WebForm Information section to the Trip page layout:

  • Layout: 2 columns
  • Left column: Selected Tour and Tier, Travel Date, Group Size Adults, Ready to Book, Best Time to Call
  • Right column: Travel Date Flexible, Travel From, Marketing Opt Out, Additional Requests

For B2B, add a second section Trade Enquiry with: Is Trade Enquiry, Travel Agency Name, IATA / Accreditation Number.

Field-level security

Grant Read + Edit on all webform fields via the Kaptio Admin Permission Set (or the equivalent admin permission set in your org):

Setup > Permission Sets > Kaptio Admin Permission Set > Object Settings > Trip > Edit > enable the webform fields.

Record type and status

Edge Webforms creates Trips with:

  • Record Type: as configured in trip-mapping.yaml target.recordType (default: Qualification)
  • Status: as configured in trip-mapping.yaml target.defaultStatus (default: Enquiry)

Ensure these values exist in your org's Trip record type and status picklist.

Trip conversion guide setup

Applies when your tenant uses two-stage intake (Lead or custom object capture) with the Trip conversion guide.

Fields on the source object

PurposeLead sourceCustom object source
Trip reference stampA Trip lookup, e.g. Trip__c (configured as lead.converted_trip_field)Same
Converted markerNative (IsConverted) — a converted Lead status must exist and be mapped in Lead settingsA status picklist including the configured converted.status_value
Account / Contact stampsNative (ConvertedAccountId, ConvertedContactId)Optional lookups (converted.account_field, converted.contact_field)

Embedding the panel on the record page

The conversion guide is an Edge Canvas embedded via the edgeCanvasRunner component. On the Lead (or custom object) record page:

  1. Edit the record page in Lightning App Builder and add the edgeCanvasRunner component with canvasId set to your conversion canvas (e.g. lead-to-trip).
  2. Check the page activation scope. Record-page activation is app-, record-type-, and profile-specific — a panel activated for one Lightning app is invisible in every other app. Verify the page is active for the app your sales agents actually work in, not just the app you tested with.
  3. Ensure the Remote Site Setting and CSP Trusted Site for the Edge canvas host exist (they are shared with other Edge canvases — see Salesforce embedding).

Integration user permissions

The conversion runs with the Edge integration user's permissions. It needs:

  • Read on the source object; create/edit on Account, Contact, and Trip.
  • Edit on the source object's stamp fields (Trip lookup, status, optional Account/Contact lookups).
  • Update Converted Leads (Lead sources only, recommended): without it, the one conversion shape where Salesforce creates the PersonAccount during conversion — a brand-new direct customer — cannot stamp the Trip back onto the now-read-only Lead. The Trip is still created and linked correctly; the panel reports the missing stamp as a warning.

Org validation rules

Trips created by the conversion guide are subject to your org's validation rules, and the panel surfaces the org's own error message to the agent. Two patterns worth checking upfront:

  • Group size rules (e.g. "Group Size must be 1 or greater") — set trip.default_group_size in the path config.
  • Primary contact completeness rules (e.g. "Primary Contact must have an Email and a Phone") — these make intake phone/email quality matter; see what the record needs to look like.