how to set default value of variables through script include? What i need to write in script include ? I need help.

Nidhi6
Giga Contributor

how to set default value of variables through script include? What i need to write in script include ? I need help.

I have attached screen shot. Change lead is a varaible. How to auto populate user name when ever any user logs into account its username field and group name should populate in respective field name in catalog item.

find_real_file.png

1 ACCEPTED SOLUTION

AbhishekGardade
Giga Sage

Hello Nidhi,

Please read this Docs neatly to understand how you can call script include from client script:

Examples of asynchronous GlideAjax

GlideAjax Example Cheat Sheet

https://community.servicenow.com/community?id=community_question&sys_id=b73c4b65db9cdbc01dcaf3231f96...

Read this articles and try. If you face any issues while coding let me know the error/issue.

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Your post doesn't make a lot of sense and it seems you're posting other confusing questions like it:

https://community.servicenow.com/community?id=community_question&sys_id=e6f7e471dbd33b404819fb243996...

You are setting the default value already by that screen shot. If you're wanting to "learn how" to do it via script include (as you alluded to in your other post), then you'd want to search the forums. It takes just a few seconds. There's plenty of resources to learn through searching.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

AbhishekGardade
Giga Sage

Hello Nidhi,

Please read this Docs neatly to understand how you can call script include from client script:

Examples of asynchronous GlideAjax

GlideAjax Example Cheat Sheet

https://community.servicenow.com/community?id=community_question&sys_id=b73c4b65db9cdbc01dcaf3231f96...

Read this articles and try. If you face any issues while coding let me know the error/issue.

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade