Web submissions

Skip to end of metadata

Web Submissions enable users to capture sign-ups via a public website straight into Kaptio Travel via a HTML format.

There are two web submission types:

  1. Type 0: Creation or update of a person account
  2. Type 1: Creation or update of a person account and an itinerary

The following inputs need to be considered:

  1. Domain: The domain assigned to your Force.com site.
  2. Submission type: 0 or 1 (see above).
  3. Channel code: The code of the selling channel* the web submission will be linked to.
  4. Form name: Name of the webform from which the submission will be sent.
  5. Return URL: You can define to which site the user will be redirected after submitting the form via the hidden _returnURL input.

Please see below the HTML code of a sample form:

<form method="POST" id="kt_form" action="https://<DOMAIN>.force.com/services/apexrest/KaptioTravel/api/v1.0/websubmission/<SUBMISSION_TYPE>/<CHANNEL_CODE>/<FORM_NAME>">
    <input type="hidden" name="_returnURL" value="<RETURN_URL>"/>
    <label for="lastname" required>lastname</label><input value="" id="lastname" maxlength="40" name="Account.LastName" size="20" type="text" /><br>
    <label for="start">Start</label><input value="" id="start" name="ktdev15__Itinerary__c.ktdev15__Start_Date__c" size="20" type="date" /><br>
    <button type="submit" id="kt_submit">Submit</button>
</form>

How to enable Web Submissions

  1. Enable your Force.com sites.
  2. Enable the Person Account record type for Force.com sites users.
  3. Enable KaptioTravel.WebSubmissionRestService Apex Class for Force.com sites users.

If you have any questions regarding the setup of web submissions, please contact your account manager or help@kaptio.com.

Web form samples