Upgrading from Requirements Widget?
Head over to the Upgrade Guide.
Don't miss our QuickStart guide.
Embed a Trip Element on your web platform using the sherpa° SDK. The Trip element provides personalized travel restrictions and visa requirements for travellers based on their itinerary.
App Id is required
You will receive a unique APP_ID during onboarding.
You need to include the sherpa° SDK by adding the script tag to the
head of your HTML file and include your personalized APP_ID.
Next, create an instance of the Trip Element object and attach it to the DOM of your site by mounting it to an existing HTML element on your page.
We recommend placing an empty div element like
<div id="sherpa-trip-element"></div> on your site to act as the mount point.
element.mount accepts a valid CSS Selector.
Multiple element divs
Please note if no div element is passed the browser will automatically create a container at the next available space. If multiple div containers are created please ensure the correctcontainer name is passed for the above mount statement.
Updated 9 days ago