CMS Development

TomSargent
Participant

Create a HubDB row with HubL

SOLVE

Hi there,

I am currently building a process into our website that allows visitors to submit a job request. As the request process is quite detailed a normal Hubspot Form isn't capable (must include the location from a pin on a map, document signatures, etc.) but I still need to store the data somewhere. 

Is it possible to CREATE a row in a HubDB Table using Javascript/HubL in a custom module?


All the posts I can find only explain how to READ from HubDB Tables.

 

Any help would be greatly appreciated

Tom

1 Accepted solution
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Create a HubDB row with HubL

SOLVE

Hey @TomSargent 

 

So as far as I know you cannot use Hubl to do this. It can be done via the HubDB API.

 

With a litte creativety you can in fact use a standard form to record any information in any format required. If of course you're on a hubspot hosted page and not embedded via an iFrame. We've done this a number of times!

 

30k foot view:

  • Hide the native HS form
  • Show a dummy form
  • On submit of dummy form collect data from form
  • Validate and format data appropriately
  • Add this data to the appropriate fields in the native form
  • Submit native form

 

Kevin Cornett - Sr. Solutions Architect @ BridgeRev

View solution in original post

1 Reply 1
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Create a HubDB row with HubL

SOLVE

Hey @TomSargent 

 

So as far as I know you cannot use Hubl to do this. It can be done via the HubDB API.

 

With a litte creativety you can in fact use a standard form to record any information in any format required. If of course you're on a hubspot hosted page and not embedded via an iFrame. We've done this a number of times!

 

30k foot view:

  • Hide the native HS form
  • Show a dummy form
  • On submit of dummy form collect data from form
  • Validate and format data appropriately
  • Add this data to the appropriate fields in the native form
  • Submit native form

 

Kevin Cornett - Sr. Solutions Architect @ BridgeRev