how to call script include in argument from module and link type is list of record

manish64
Giga Guru

i tried to below ways

  • : javascript:scriptincludename().functionname();
  •  javascript: new scriptincludename().functionname();
  •  javascript: new scriptincludename().functionname();
  •  javascript: new functionname(); script include name is same name as function name
    javascript: functionname(); script include name is same name as function name

 

could anyone help on this 

 

1 ACCEPTED SOLUTION

manish64
Giga Guru

Solution is script include and function name should be same and be called javascript: functionname();

View solution in original post

18 REPLIES 18

@manish 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

manish64
Giga Guru

Solution is script include and function name should be same and be called javascript: functionname();

Hi,

not required.

You can also use script include with class and use as this syntax and it should be client callable

javascript: new ScriptInclude().functionName();

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

i am letting working solution