Musab Rasheed
Kilo Patron

Hello,

How did you make fields mandatory ? if from UI policy then make it mandatory from dictionary if made it mandatory from dictionary then use UI policy.

Also, for number field it should be of type Single line text and use regex validation method using below

https://community.servicenow.com/community?id=community_article&sys_id=ebcf2b6edbd7d0103daa1ea668961973

Try these two.

Please hit like and mark my response as correct if that helps

Regards

 

Please hit like and mark my response as correct if that helps
Regards,
Musab

Lior Kaitel
Tera Guru

i made the fields mandatory from the catalog builder

find_real_file.png

and i used already the regex validation for a number

find_real_file.png

any idea why it is still not working?

Lior Kaitel
Tera Guru

i managed to find the issue

i updated the type to reference and to cmn_location(it was lookup select box)

find_real_file.png

View solution in original post

Not applicable

I was having issue on this step as well. I used below mention types for variables and they worked for me.

Workshop date

Question type: Date / Time

Question Subtype: Date & Time

 

Workshop location

Question type: Choice

Question Subtype: Record Reference

 

Projector?

Question type: Option

Question Subtype: Yes / No

 

Number of chairs

Question type: Text

Question Subtype: Single-line

Under Additional details -> Validation -> Number

 

 

HumaSaleem_0-1693776420981.png

 

johnpierce
Tera Contributor

The location item is what caused the error for me. I had Choice and Record reference and it did not like it... changing it to type = 'Reference' resolved the issue and it worked. 

1. "Reference" was not one of the choices in the simulator drop-down, only 'choice' [which did not work]

2. Go to 'Maintain Catalog' and select 'Consulting Practice', go down to the catalog items and select 'Workshop Setup', then go down to 'Variables' and select the 'Workshop location' [if you are getting the error you will be clicking on 'Choice', now change the 'Type' to reference.