AI Search Assist showing up in variable editor

Michael Culhan1
Mega Sage

I added AI Search Assist to a record producer.  It automatically adds the AI Search Assist variable.  When the user submits and is taken to the ticket page, the AI Search Assist variable appears on the Variable Editor (read only).  How do I hide it?  Catalog UI Policy doesn't work.

 

Note that I have to use a Variable Editor (read-only) on the ticket page because Variable Summarizer doesn't display html and my description field is html (so that users can paste screenshots)

 

 

MichaelCulhan1_1-1779812383143.png

 

1 REPLY 1

Tanushree Maiti
Giga Patron

Hi @Michael Culhan1 

 

  1. Open your record producer
    • Navigate to Service Catalog > Catalog Policy > Catalog Client Scripts.
    • Click New.
    • Name: Hide AI Search on Ticket Form
    • Table: Select your Record Producer table.
    • Type: onLoad
    • UI Type: All

function onLoad() {

        g_form.setDisplay('variables.u_ai_search_assist', false); // Replace 'u_ai_search_assist' with the actual variable name

}

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: