Error msg : The following fields contain errors

sai78
Kilo Guru

Hi Guys,

I have created one "checkbox" varaible on record producer. Let's say xyz. Also mandatory.

And mapped this to a field in backend which is of true/false type.

No issue when user genrally fills all the fields and submit.

But if the user didn't fill the checkbox variable and submits there is error message to fill all mandatory fields which is expected behaviour. But then again when the user fills the checkbox and tries to submit there is another error message as below.

"The following field contain errors : xyz "

 

And user not able to submit now. Any help on this ?

 

 

 

1 ACCEPTED SOLUTION

sai78
Kilo Guru
Hi All , Thanks for the response but this issue was marked as a product defect after Rome patch 7 and it will be fixed in San Diego.

View solution in original post

14 REPLIES 14

This is apparently a known issue in Rome patch 7 and 8.

It is fixed in San Diego.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1116181

Community Alums
Not applicable

Hi Mark,

Just an update on this - Ankit's suggested workaround worked for me. The only "down side" is the asterisk won't be greyed out once you check the box.

Personally, I prefer it like that.

It is a great suggestion from Ankit and I'm glad to have a workaround, however if we go this route many of our forms will need to be updated.

I would still like to pursue a fix to the OOB functionality with ServiceNow.

Silva
Tera Contributor

I was able to find a workaround in the form where we're experiencing this issue. Our form has a client script that checks if an email address entered into a field is an internal address or external address. If the value is an external address, the checkbox variables in question are mandatory. If the value is an internal address, the variables are optional. Changing the email address value to cause the checkboxes to become optional then changing the email address back to its original value allows the user to submit the request.

If you are experiencing the issue frequently enough, you could try adding an onChange client script to set the variables as optional then mandatory again. Hopefully that can hold you over until the issue is addressed.

Ankit84
Tera Contributor

Insted of checking selection required box on the variable record label, Replace it with UI policy that checks that the value of the variable is false and makes it mandatory only on that condition.