Allow user to enter non-existing value to Catalog Item reference variable

huyentp
Tera Expert

I'm working with catalog item and I have a variable called 'city', which is a reference variable to the 'cmn_location' table. The requirements are:

- As user typing in the 'city', it should have autocomplete (which can be achieve with the built-in autocomplete feature).

- If the value they type in does not exist in the 'cmn_location' table, do not show the error "Invalid Reference", but create a record for it in the 'cmn_location' table.

I know in the regular form, this can be done by turning on Dynamic Creation on the form's reference field, but this is not offered in Service Catalog Item. Is there a workaround to achieve the requirements I listed above?

 

Thank you!

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Creating a value in a reference variable when it does not exist... that just won't be possible. Perhaps you can think of something with an extra field for if their city is not listed or something? Or providing a field message with some help how/what/where to go to get the city listed.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn