Lookup Select Box change value another variable html

rlameira
Tera Contributor

How i reflecting  in About this Item (variable). Description of the Monitor 24   when user selected Monitor 24 in Lookup Select Box.

rlameira_0-1705058338893.png

 

 

rlameira_1-1705058338896.png

 

1 ACCEPTED SOLUTION

Hi @rlameira 

 

Please have a look on my reply on the post https://www.servicenow.com/community/itsm-forum/catalog-item-single-line-text-validation/m-p/2790706...

 

You can take a reference from there and make the Client Callable Script Include and Catalog Client Script accordingly. Let me know if you face any issues. Will be happy to assist.

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

View solution in original post

4 REPLIES 4

Amit Verma
Kilo Patron
Kilo Patron

Hi @rlameira 

 

You can make use of an On-Change Catalog Client Script on the field model to call a Client Callable Script Include which can query the "cmdb_model" table to get the description of the model selected and render it back to the client script. The response collected by the client script could then be set to the field "about this item".

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Can you show me a examplo, please

Hi @rlameira 

 

Please have a look on my reply on the post https://www.servicenow.com/community/itsm-forum/catalog-item-single-line-text-validation/m-p/2790706...

 

You can take a reference from there and make the Client Callable Script Include and Catalog Client Script accordingly. Let me know if you face any issues. Will be happy to assist.

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

-O-
Kilo Patron
Kilo Patron

The correct thing to do would be to have separate catalog items for each model, and as an added bonus, you would not have this problem too.

Imagine going to Aliexpress (or Amazon, or eBay, or whatever) and instead of being able to view and order each item separately, you could order just a few items/types/categories and you would have to select the actual item you want to order in a drop-down (of millions of items).