This catalog client script is not VA supported due to the presence of the following variables in the

GhitaB
Tera Contributor

actually i m facing that error message '

This catalog client script is not VA supported due to the presence of the following variables in the script: g_service_catalog.parent.getValue' cause i m trying to get a value of a field that is outside the MRVS i tried multiple ways before but none of them worked , is there any alternative? cause this g_service_catalog.parent.getValue is the only solution that worked for me as i need to put some fields mandatory based on the field that is outside the modal of MRVS
 
1 ACCEPTED SOLUTION

@GhitaB 

that should be fine, you need not worry on that info message.

that's the only way which ServiceNow allows to access outside variable within MRVS.

You can use that safely.

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

View solution in original post

6 REPLIES 6

Mohammad Danis1
Giga Guru

Hi @GhitaB ,

Please find the link : https://www.servicenow.com/community/itsm-forum/catalog-client-script-is-showing-as-the-script-is-no...

------------------------------------ | Was my response helpful? | ------------------------------------
⬇️Dropping a Kudos or Accepting as solution ↘️ would be absolutely brill Cheers!

Regards,
Mohammad Danish



Ankur Bawiskar
Tera Patron
Tera Patron

@GhitaB 

The g_service_catalog API is supported by ServiceNow so that line should not be an issue.

There should be some other line of code which is not VA supported

if you wish to access outside variable within MRVS client script then that's the only way you have

I have created blog for same in past

Access value of catalog item variable within MRVS client script 

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

honestly there are just some few lines in my code , it shows that only when i added that row 

(g_service_catalog.parent.getValue('subject_country') , i ve tried multiple way but this is the only way it worked with

@GhitaB 

that should be fine, you need not worry on that info message.

that's the only way which ServiceNow allows to access outside variable within MRVS.

You can use that safely.

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