Using form to add rows in HubDB table

Hi @codenil,

you can create a custom module with a modified form embed code like this one

<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
<script>
 hbspt.forms.create({
 region: "na1",
 portalId: "{{ hub_id }}",
 formId: "{{ module.form_field.form_id }}",
			{# all further modifications come here #}
 });
</script>

add a form function to it (in this example I did not modify the name) and trigger the HubDB API on an “onFormSubmitted” event

hope this helps.

btw - you can create multilevel dynamic pages(listing, detail…) with HubDB

best,

Anton