Null as field value
I had a user that filled a form with "null" as the company name. Since i am not using embedded marketo forms but backend submission, the value of the company name was null. even if i sanitize the field, the value is still null because it's a valid string. The result of it was that the company name stayed empty and the lead did not sync into SF because of the mandatory field requirement.
I have a way to validate and return an error to the user on form field globally in code but i wanted to use the smarts of the nation and see if there is a better way to resolve this. Please feel free to bash me for bad behavior if exists.
Yaron