Let us take one of the out-of-the-box marketing forms available in Dynamics 365 Marketing.
It has only an Email field marked as required and creates / updates both contacts and leads.
If we click on Check for errors we will get the below notifications.
- To create a Contact, the Last Name (lastname) field should be included in your form and marked as required.
- To create a Lead, the Last Name (lastname) field should be included in your form and marked as required.
Now let us host this form and try submitting it.
Click on Go Live, and create a new related marketing form page for it. Make sure you have the domain already authenticated.
Authenticate Domain – https://nishantrana.me/2022/11/09/how-to-authenticate-domain-in-dynamics-365-marketing/
Embed Marketing Form on the external page – https://nishantrana.me/2022/11/10/how-to-embed-marketing-form-on-an-external-page/
Open the Form page and copy the script to host the form.
On the host page, let us submit the details.
Back in our Marketing form, we can see the submission.
And also, both the lead and contact records created.
Now let us try one more submission without specifying a value for the lastname field (which it was showing in the notification, as a required field to be added on the form, for both the lead and contact table).
We can see the submissions in the Marketing Form.
And both the lead and contact records were created.
So although it shows the notification for all the mandatory fields which are not added in the form and marked as required, it still allows the record to be created.
Hope it helps..