Skip to content
  • There are no suggestions because the search field is empty.

Send form submissions to an external source

Point your Foleon form at a CRM, marketing platform, or any other tool that accepts form data. This guide covers how to map your fields, add hidden values, and set the destination URL.

In this article:

πŸ“– For more on creating and styling your form, read All about Forms.

Any Foleon form can send its submissions to an external URL. When someone submits the form, Foleon sends the data to that URL as an HTTP POST request, which is the standard way web forms deliver data. Most tools that collect form data accept submissions this way, including Salesforce Web-to-Lead, marketing automation platforms, and custom endpoints your development team builds.

The receiving system decides what the data needs to look like. Your job in Foleon is to match your form to those requirements: use the field names it expects, include any values it requires, and point the form at the right URL. The examples in this article use Salesforce Web-to-Lead, but the setup can be used for other systems.

Get your endpoint details

Before you build the form, you’ll need to collect three things from the system you're sending to. You'll usually find these in its documentation, its integration settings, or the sample code it generates.

πŸ’‘ Every field you want to send must already exist in the receiving system. You can't create fields in another tool from Foleon.

  1. Find the endpoint URL that receives submissions.
    For Salesforce Web-to-Lead, this is the URL inside the <form action="..."> tag of the HTML Salesforce generates for you.
  2. Note the exact name of every field you want to send. These are often different from the labels shown to readers.
    Salesforce custom fields, for example, end in __c.
  3. Check whether the system requires any fixed values with every submission.
    Salesforce Web-to-Lead requires an organization ID, sent as a field named oid.

Create a form and match your field names

Create a form:

  1. Open the Foleon Doc and page where you want the form to appear.
  2. Drag the Form element onto the canvas.
  3. The form builder will open. Click on any of the fields to add them to your form.

Create form

Match your field names:
After the fields have been added to your form, you need to add the field name.

  1. Hover over the field in your form and click the settings icon.
    Field settings
     
  2. Open General settings.
  3. Scroll down to Field name and enter the field name exactly from the receiving system.
    For a first name field going to Salesforce, this is first_name.
  4. Repeat for every field in your form.

⚠️ Field names must match what the receiving system expects, exactly. Capitalization and suffixes matter. If a name doesn't match, that value is dropped and the reader still sees a successful submission.

Enter field name

Add your hidden fields

Hidden fields send values the reader never sees or fills in. Use them for values the receiving system needs but the reader shouldn't have to fill in, and for tracking data you want attached to every submission.

  1. In the form builder, add a Hidden field from the list of available field types.
  2. Hover over the hidden field in your form and click the settings icon.
  3. Open General settings.
  4. Enter the Field name: the field name must match the corresponding field in your receiving system For example, if the hidden field is for campaign_ID__c, set the Field name to campaign_ID__c.
  5. Enter the Field Value: Enter the value that you want to pass to your receiving system.
    For example, for the campaign_ID__c hidden field, you might enter the ID of the campaign you want to track, like 7011Y000000FszR.
  6. Add a hidden field for each additional value, using the same steps.
  7. Once you’re done adding all the fields, click Done in the top right corner of the window.

Hidden field settings

Set the form action and storage

  1. Hover over your form and click the settings icon.
    Form Settings
  2. Open General settings.
  3. Paste your endpoint URL into the Form action field.
  4. Set the Form storage toggle:
    • Leave it on to store submissions in Foleon as well as sending them to the external system.
    • Turn it off to send submissions to the external system only.

⚠️ You can't turn off Form storage without a valid Form action URL. Foleon needs somewhere to send the data.

Form action and form storage settings

Test your form

  1. Preview your Doc and fill in the form with test data.
  2. Submit the form.
  3. Open the receiving system and check that your submission arrived with every visible and hidden value in the right place.
  4. Publish the Doc once everything comes through correctly.

πŸ’‘ If the hidden fields are not coming through, double-check that the field names in Foleon match the names exactly in your receiving system, and that you’ve set the correct values.