Get all variables by client script : Service Catalog

David Vu1
Kilo Expert

Dear community,

Is there any function same as g_form.getEditableFields() for Portal? 

I want to get the list of all variables in Service catalog in portal.

Thanks in advance 🙂

9 REPLIES 9

chitra11
Tera Contributor

Hi ,

 I am trying to implement the same but it is not working and i m getting error .

Error MessageonSubmit script error: TypeError: g_form.getFieldNames is not a function:
function () { [native code] }

 

I used above script in onsubmit of the catalog item. Kindly guide. I am also in newyork version

 I am trying to implement the same but it is not working and i m getting error .

Error MessageonSubmit script error: TypeError: g_form.getFieldNames is not a function:
function () { [native code] }

 

I used above script in onsubmit of the catalog item. Kindly guide. I am also in newyork version

Sagar Pagar
Tera Patron

Hi,

 

Find the blog to get all variables of a catalog item here Get all variables for a given catalog item

also this previous thread will help you,

To Get all variables from catalog item.

 

Regards,

Sagar Pagar

The world works with ServiceNow

Great links.  Thanks!

Please mark this answer as correct answer if it solves your question. This will help others who are  looking for similar solution.

 

The world works with ServiceNow