Load /js/form.js, then use the <sealroute-form> custom element in the template.
Example Code
<!-- Load https://your.domain/js/form.js in index.html first -->
<template>
<sealroute-form
:data-src="src"
data-height="800"
@completed="onComplete"
/>
</template>
<script>
export default {
name: 'App',
data() {
return {
src: 'https://your.domain/d/{{ template_slug }}'
}
},
methods: {
onComplete(e) {
console.log(e.detail)
}
}
}
</script>
Attributes
Same as the JavaScript signing form: data-src (required), data-height (optional).
Events
init, completed, declined, requires_top_level.
Last modified on