how many ways mandatory fields can be bypass?

imran sk
Tera Contributor

In the form there is a mandatory field, users are able to create records without filling that mandatory field .

What are the possible methods by which users are bypassing the mandatory field? one method i know is through Data Sources. Is there any other method ?

Thanks in Advance 

 

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Hi,

A possible case that field is set mandatory by using UI Policy or Client Script & thus is limited to form view.

By that what I mean is the users who are able to submit without entering value in mandatory field is because they use different form view & as UI Policy or Client Script is used to make it mandatory it is not applicable for this view & thus is the case.

Abhijit4
Mega Sage

It could be via any backend operation like integration, Data Sources or via any script. Best way to deal with such scenario is to have Data Policy that makes field mandatory even if you are not updating records via form.

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

MrMuhammad
Giga Sage

Hi,

As Jaspal already mentioned if you are using UI policy or client script mandatory attribute will be limited to form view and may be some specific form view.

In addition, Anyone with a non-interactive session [Data source, Scheduled jobs, fix scripts, background script, flows , workflows, server side scripts, integrations etc] can bypass this as this is limited to only an interactive session [User opens the form and fills out the details]. 

If you want to restrict this you should be using Data policies or any other server-side way of making that field mandatory.

Regards,

Muhammad 

Regards,
Muhammad