GetLinked Jab
SDK for rendering forms with custom components and validation in static websites
SDK for rendering forms with custom components and validation in static websites
The GetLinked Jab offers 2 main functionalities:
For more information and examples, see the Using the GetLinked Jab Form
Before the close of the HTML head tag (</head>), add the stylesheet:
<link rel="stylesheet" href="/path/to/glj.css" media=all>For more information about style customization, please see the styling options documentation.
Before the close of the HTML body tag (</body>), add the async initializer:
<script>
window.addEventListener('GLJ:loaded', () => {
window.GLJ.init({
baseUrl: 'https://server.your-getlinked-backend-domain.example',
selector: '[some-css-selector]',
tosDocLocation: new URL('/tos.md', window.location.href).toString(),
})
})
</script>For more information about the available configuration options, please see the configuration options documentation.
Before the close of the HTML body tag (</body>) but after the async initializer, add the SDK:
<script type="text/javascript" src="/path/to/glj.js" async defer></script>Before the close of the HTML body tag (</body>), add the async initializer:
<script>
window.addEventListener('GLJ:loaded', () => {
window.GLJ.renderRemoteMarkdownDoc({
selector: '[some-css-selector]',
url: new URL('/tos.md', window.location.href).toString(),
})
})
</script>renderRemoteMarkdownDoc | Option | Description |
|---|---|
selector | The CSS Selector used to identify where the markdown document should be rendered. |
url | The URL to the remotely hosted markdown document. |
Before the close of the HTML body tag (</body>) but after the async initializer, add the SDK:
<script type="text/javascript" src="/path/to/glj.js" async defer></script>