Autopopulate field value

kirankr2061
Tera Contributor

I have created 3 variables in a catalog item one is cloud account name, and another is cloud ops support group which are from same table If I choose a cloud account name then the other field is autopopulated now the problem if the data in the backend is missing if a cloud account does not have support group then I can select it manually a group then its not visible in RITM form its showing empty.
What is the reason how to solve this

2 REPLIES 2

Chaitanya ILCR
Kilo Patron

Hi @kirankr2061 ,

if you have created onChange client script for this

simply uncheck Applies on catalog task and Requested item 

if it's a record producer uncheck run on the target record

 

ChaitanyaILCR_0-1749144686208.png

 

OR

 

use

if(isLoading){return;}

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@kirankr2061 

you must be using the auto populate feature and hence it might be causing the issue.

Did you try to use onLoad GlideAjax which works only on Catalog Item view and brings the value from script include and set the value?

If the value is not present user can select or type in and once RITM is generated that value should be present on the form in the variable.

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