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:
- Type 0: Creation or update of a person account
- Type 1: Creation or update of a person account and an itinerary
The following inputs need to be considered:
- Domain: The domain assigned to your Force.com site.
- Submission type: 0 or 1 (see above).
- Channel code: The code of the selling channel* the web submission will be linked to.
- Form name: Name of the webform from which the submission will be sent.
- 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
- Enable your Force.com sites.
- Enable the Person Account record type for Force.com sites users.
- 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.