Catalog item Variable selection validation

surajsukuma
Tera Contributor

In one of my catalog items, there is a field called Priority Rating. First task owner will update this,

is there any option to popup if the task owner selected the value, and if the selected value has already been updated in another catalog item? Ex. selected Priority 2 and the same 2 already selected and saved in the previous request, then should not be allowed to select in the new request like that. 

 

surajsukuma_0-1740996167357.png

 

Thanks in advance 

 

5 REPLIES 5

Mark Manders
Mega Patron

You can do an AJAX call to the server to check and return a warning, but your requirement doesn't really make sense. I guess you can only have 20 records in total? What happens on 21? What happens if 4 already exists, but nr 18 is created and needs to be at 4? 

I am not sure about your process here, but you may want to look at a different way to fulfill the requirement.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Mark, thank you for your response, there will not be 21, need to alert the Task owner should not be allowed selected value, and also I need one condition it's application only,y the other requests are in open stage

@surajsukuma 

you can use onChange + GlideAjax

what script did you start for that and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

i am not onChange + GlideAjax, do you have any sample script for reference