Misc stuff

Confirming our form field validation is consistent with the application

Overview

Hello - I asked our Engineering team to document the requirements of the SwipeSimple Connect Application, so we can ensure our Lead forms are sending over data in the expected format, and not throwing any errors (like the issue with phone # we had)

Request

Please review the documentation from our team. It’s possible we don’t need to make any changes! But I’d like to make sure we’re good.
So,
please review their documentation
let us know if it aligns to the validation currently on the form
if not, please update the forms (i believe on the Webflow side only?) to be compatible

Documentation

SSConnect API Leagen Requirements are the following:
The form must be submitted with the following content-type:
application/x-www-form-urlencoded
basically must be a web form submit
Field requirements
"pmi": string of any length,
"firstName": string of any length,
"lastName": string of any length,
"email": string, following valid email format ( @ sign and valid domain following )
"phone":
string of 10 numbers (3 area code, 3, 4 number format)
parenthesis and dashes are optional
specific regex we use is /^\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,
"businessName": string of any length,
"productsSold": string of any length,
PMI and Email are required fields

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.