APIs & Integrations

edinabazi
Member

skipValidation for Form submissions is inconsistent

Hi,

 

We're using custom forms and submitting the data via ajax to the forms API. Due to the global nature of the form, we have dynamic fields that are shown/hidden based on the page the user is on.

 

skipValidation has been very helpful with this for standard text fields since it allows us to leave certain fields empty and have the form be submitted successfully, but for some reason when we leave a dropdown field empty (not sending a predefined value), skipValidation just refuses to work and the submission doesn't go through.

 

Is there anything we can do to fix this, or is it just how the API is designed?

 

Thanks!

0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

skipValidation for Form submissions is inconsistent

Hey @edinabazi,

 

Just to clarify, are you setting the dropdown field as a mandatory field?

 

If not, could you share with me the following so that I can further troubleshoot on this,

 

1. Portal ID

2. Form name

3. A snippet of your code

4. The page URL that the form is on

0 Upvotes