Hello all,
I have embedded a contact property (formatted number field type) on a form, but whenever someone fills out the form, hubspot is converting blank value to zero after submission. Is there way to keep that property blank if someone chooses to not fill that field.
?
Hey @PMenkar1 “0” is still a value. So as long as any value is submit then HubSpot will set the value within the contact property.
If you don’t require a value you can set the form field as not required. If you want to proactively set a “0” value to be a cleared value you can do this through workflows if you have access though!
You could set a workflow with an enrollment trigger of “submit form” and then set the action as “edit record” and “field value = 0” , choose your property and then check the checkbox to clear the property value!
At the moment there’s no logic in forms to say “if a property is a value don’t populate”
hi @TomM2 , same problem as what @PMenkar1 experienced above.
Here’s my requirement -
I want to qualify leads based on a numerical value they submit.
The form displays blank values in ‘required’ text fields and forces a validation error.
However, when dealing with a numerical value, the field displays 0 which the person filling out the form on my website doesn’t bother to change.
When my reps reach out to the person who submits the form, turns out the value is something other than zero…which leads to workflow issues for us downstream - we don’t know if it’s an accidental zero being submitted OR they intentionally chose zero.
So, two fields - text vs numbers - behave inconsistently when dealing with default values. Text accepts a blank in the form’s initial state while number displays 0 forcibly with no way to remove it except maybe make the field non-required (which isn’t helping us qualify the prospect).
Is there any other way or workaround to this?
Hey @DJ83 have you set your form field to have a default value of 0 or be required?
If you don’t have a default value and the field isn’t required the field shouldn’t update on a form submission, it should just stay blank, if it’s a number field that is.
Thank you so much for the quick revert @TomM2 .
Yes, the field is a required value since we need the form input to drive additional workflows.
I have tried to reset the default value to blank but hubspot overrides my changes.
My understanding is that this is a pretty common ask - to have a numeric field with number validation but which loads blank on default. Might have I missed something obvious?.. appreciate all the help.
Thanks @TomM2 ![]()