Preference form in Hubspot


#1

I have created a preference form in the hubspot and also can view the preview


Image 2 , first one is the form in my application(jsp , copied code from the hubspot and pasted in jsp).
Working fine , after submitting the data in my jsp , data is getting created in hubspot.(second one in the same image)

After submitting , email from hubspot. Perfectly working fine in my local computer.

My questions:

  1. Do we need to do same thing to make forms work in production or any other changes required ?
    not tested in production. Hubspot technical support suggested to my client saying, Forms will not work in production and also needed some extra infrastructure.
  2. Is any better approach to send data other than forms ?

Please help.