Hey everyone, we've been using the contact form he...
# suitecommerce
m
Hey everyone, we've been using the contact form here: https://developers.suitecommerce.com/build-a-contact-us-form-part-1 on an elbrus site for years, and it also works on 2019.1 on our Sandbox site. We moved our elbrus site to 2019.1 yesterday the contact form broke. This bundle/extension https://developers.suitecommerce.com/chapter1533898131 doesn't provide us with what we need. So in trying to fix the broken contact form, I am not getting any errors client or server side and the "thank you" modal pops as it returns as successful. the responseCode to
response = nlapiRequestURL(url, data)
is a 206. The url and data going into that call look good. The problem is there is no case or lead creation. Anyone have an idea or run into something not saving but no errors? Thank you!
a
Did you make sure to recreate the online form in the NetSuite UI (Setup -> Marketing -> Online Customer Forms) for your live account? You also need to make sure that you update the website config based upon the form created in your live account. We use a very similar setup for ours as well.
m
Thanks, we definitely updated the config... we don't appear to be using Setup -> Marketing -> Online Customer Forms -- it's empty on Sandbox (where the contact form is working in 2019.1) and empty in production, which for that would have been the same in Elburs, right?
a
That's odd... our original form was setup like this and uses a custom online customer form. The online form is what actually makes the customer in NetSuite and sends a confirmation email (if desired). In your configuration, that is what the 'Form ID' and 'Generated Hash' are supposed to point to.
Did you check to make sure that there are no filters on your online customer form page? A filter may be hiding it.
m
yeah, I changed the filters around, there's nothing there
our form creates a support case and creates a lead. It worked for years in Elbrus, and works in 2019.1 on our Sandbox, but not 2019.1 Production. No errors server side or client side, but the form does not save and no cases or leads are created. I'm absolutely puzzled.
It was built by our implementation team before I worked here, but it is about line by line identical to https://developers.suitecommerce.com/build-a-contact-us-form-part-1
I moved it into 2019.1 on our Sandbox and it's fine. I know I am repeating myself, but just no idea why it isn't working
a
Yeah, that is exactly how ours works as well. It was installed by an implementation team for us as well... The online form is what creates the case and customer. I have no idea how it could be working without one, unless the form can be stored somewhere else in NS. You can see in the model.js file, it is constructing a form URL in order to submit:
Copy code
+ 'app/site/crm/externalcasepage.nl?compid=' + nlapiGetContext().getCompany()
      + '&formid=' + configuration.formId
      + '&h=' + configuration.hash
      + '&globalsubscriptionstatus=1';
You may be able to reverse engineer that URL to see where the sandbox is going when the form is submitted.
m
yeah, good idea, thanks.
ok, so i figured it out. the hash apparently changed when we upgraded to 2019.1 on production, which it didn't do on sandbox becasue we did not have this issue. Our form lives in Cases and the hash changed a little. I put the new hash in the config and everything worked as expected. thanks for your help
glad I got this working because we also installed the contact form here: https://developers.suitecommerce.com/chapter1533898131 and it's not that great; pretty limiting
a
No problem! I'm glad that you got it working!