How do I get the sys_id of the excel file attached to a catalog item?

gunishi
Tera Guru

Hi all, 

 

I have a catalog item where I have allowed the user to be able to attach an excel doc. The excel doc should be of a certain format so I have scripted to be able to check it. 

 

However, I have a blocker at the beginning as in my OnSubmit Client Script 'gel' is not being recognised in the following line:

 

var sys_id = gel('sysparm_item_guid').value

 

Is there a replacement for gel? Alternatively, how can I find the sys_id of the attached excel document?

 

Thank you, 

G

1 ACCEPTED SOLUTION

Peter Bodelier
Giga Sage

Hi @gunishi,

You could use  g_form.getValue ('sysparm_item_guid');


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

2 REPLIES 2

Peter Bodelier
Giga Sage

Hi @gunishi,

You could use  g_form.getValue ('sysparm_item_guid');


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Hi @Peter Bodelier , 

 

Thank you so much, this has worked brilliantly. 

 

Kind regards, 

G