Get CI attributes on the form and populate in Client Script

sntech
Tera Contributor

Hi,

 

Good Day..!!

 

The requirement is to populate the attributes on the form in other field.

 

E.g.  If we select widows test server 1, then below field should list down all the fields present on that form. 

 

I have written the script include as below

 

"

getCiName : function(){

        var a = this.getParameter ('sys_ci');

        var ciAttribute = new GlideRecord ('cmdb_ci');
        ciAttribute.addQuery ('sys_id', a);
        ciAttribute.query();
        if (ciAttribute.next())
        {
            return
        }

"

 

Can anyone help how to fetch those fields and show them on client side as dropdown options?

 

 

sntech_0-1768937277637.png

Thank you.

0 REPLIES 0