Catalog UI Policy is not working on virtaul agent chatbot

ravish2k
Tera Contributor

Hello Dear All, I'm facing issue in catalog UI policy. I'm using below simple script for date field.

 

function onCondition() {
g_form.setValue("Request_new_expiry" , " ");
g_form.showErrorBox('Request_new_expiry' , getMessage('Req are only valid for 6 months'));
}

 

I'm getting error message that "Cant find a valid Record" in chatbot, this UI policy is working in service Portal and ITIL but its not working in 'virtual agent chat bot'.

 

As per below article, its should work as g_form.setValue and g_form.showErrorBox functions are supported in virtual agent.

 

https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/service-catalog-man...

 

Can you pls advice where I'm getting wrong?

 

Thanks,

Ravi

1 REPLY 1

Saloni Suthar
Mega Sage
Mega Sage

Hi @ravish2k,

Are you using Now Assist? because the link you referred to is for Service Catalog topics in LLM.


I would recommend reviewing https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/service-catalog-man....

 

Scripted UI policy does not work in Virtual Agent. Please see the document I posted above for more details


If my response helped you, please click on "Accept as solution" and mark it as helpful.
- Saloni