Unable to update hidden field in UI view

senon
Tera Sage

 

senon_0-1677473247704.png

 

When the hidden button is enabled and updated as shown in the image below, the message "A view name can only contain alphanumeric characters" and cannot be updated.

 

I believe my definition does not differ from the content of this error message.

 

Some views do not display this error, but we do not know the conditions under which this error is displayed.

 

Please tell me how I can solve this problem.

 

Best regards.

 

senon

1 ACCEPTED SOLUTION

Prince Arora
Tera Sage
Tera Sage

@senon ,

 

I have reproduced the same case in my instance and I have seen their is a Business rule which is checking the name of UI view as shown in screenshot below:

PRINCE_ARORA_0-1677492417042.png

 

And I tried to find out the "GlideScriptViewManager" and I believe for security reason ServiceNow made it hidden.

Also I observe the list of all the view where "hidden== true" and seems that the name doesn't contain the space in that so please try creating the view by removing the space and adding the "Major_Incident", it will work.

As Code from the script include is not accessible so we cannot check for the validation rules, but yeah they have added a validation if "hidden==true", name should not contain space.

PRINCE_ARORA_1-1677492668079.png

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

View solution in original post

4 REPLIES 4

Aavi
Mega Guru

Hi,

Please set the name using alphanumeric characters like we do for incidents i.e. INC000123.

 

Please mark as correct answer if this solves your issue.

 

Look at the picture.
The name consists only of letters of the alphabet. What is the cause of such an error?

Community Alums
Not applicable

Hi @senon ,

Change the name to major_incidents

You've to follow naming constraints:

should be in lower case or include "_" in between

Mark it as helpful, if it works.

Prince Arora
Tera Sage
Tera Sage

@senon ,

 

I have reproduced the same case in my instance and I have seen their is a Business rule which is checking the name of UI view as shown in screenshot below:

PRINCE_ARORA_0-1677492417042.png

 

And I tried to find out the "GlideScriptViewManager" and I believe for security reason ServiceNow made it hidden.

Also I observe the list of all the view where "hidden== true" and seems that the name doesn't contain the space in that so please try creating the view by removing the space and adding the "Major_Incident", it will work.

As Code from the script include is not accessible so we cannot check for the validation rules, but yeah they have added a validation if "hidden==true", name should not contain space.

PRINCE_ARORA_1-1677492668079.png

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.