I have a client that wants a contact form with input fields for name, email, and phone number.
They want the visitor to be required to submit the form with EITHER an email address OR a phone number, but not both.
I know this functionality isn’t available natively within Webflow forms but I imagine it can be done using some custom code. Does anyone have suggestions?
You’ll just need to wrap the phone and email inputs in a div with a class ‘input-wrap’, set both fields to required and then add the following code to Page Settings > Custom Code > Before </body> tag: