web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Form submissions passing without required fields

(1) ShareShare
ReportReport
Posted on by 2
We use MSD forms on our site. Recently, we noticed that leads were getting created and the Country (which is a required field) is not getting passed to the lead. We think that somehow people are able to submit the form without choosing the country, but we can't confirm. We've added a log to detect browser version, OS, and source of the URL for the form submission. We have tried testing to replicate the issue, but haven't been able to. 
 
How could this possibly happen if the Country field is required? 
Categories:
I have the same question (0)
  • Suggested answer
    Inogic Profile Picture
    651 on at
    Form submissions passing without required fields
    Hi,
     
    Consider these additional checks:
    1. Form Validation Issue:
    • The form may not be enforcing client-side validation correctly, allowing users to submit the form without selecting a country.
    • Check: Inspect the form HTML and JavaScript to verify that the Country field has proper validation logic in place. Ensure that the required attribute is correctly configured.
    • Solution: Ensure that the form uses server-side validation as well. Client-side validation alone can be bypassed by disabling JavaScript or using developer tools.
    1. Form Customization or JavaScript Overrides:
    • Custom JavaScript code might be unintentionally allowing the form to submit without setting the Country field.
    • Check: Review any custom scripts or event handlers associated with the form submission. Look for logic that bypasses validation or modifies the form data before submission.
    • Solution: Ensure that custom scripts perform appropriate checks for required fields before submission.
    1. Data Mapping Issues in MSD Forms:
    • If the form is integrated with Dynamics 365 through a connector or plugin, there may be an issue with field mapping, causing the Country field to be skipped.
    • Check: Verify the field mapping configuration to ensure the Country field is correctly mapped to the Lead entity in Dynamics 365.
    • Solution: Correct the mapping to ensure that the Country value is always included during data submission.
    1. Bot or Malicious Activity:
    • Automated submissions or bots may bypass the form's validation logic, sending incomplete or manipulated data.
    • Check: Analyze the logs for unusual patterns, such as repeated submissions from the same IP or specific browser/OS combinations.
    • Solution: Implement CAPTCHA, honeypot fields, or server-side validation to prevent automated or malformed submissions.
    1. Caching Issues:
    • Cached versions of the form may not include recent changes to the required field validation.
    • Check: Confirm that the form's cache has been cleared after making changes.
    • Solution: Implement cache-busting techniques or force a form reload for each session.
    1. Backend or API Issues:
    • The backend logic handling form submissions might not be correctly handling or validating the Country field.
    • Check: Review the backend process that handles form submissions, particularly the logic that creates the Lead record.
    • Solution: Implement a server-side check to verify that the Country field is not empty before proceeding with lead creation.
    1. User Manipulation:
    • Users may be using browser developer tools to remove the "required" attribute or modify the form data before submission.
    • Check: Compare the form structure during normal and suspicious submissions.
    • Solution: Implement server-side validation to ensure that critical fields like Country are always populated before lead
    Hope this helps.
     
    Thanks!
    Inogic

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 106 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans