Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to call Script Include using Jelly Script ?

Chandra51
Tera Contributor

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:ui_reference name="active=true" id="name" table="sys_user_group"/>
<g2:evaluate>
var out= new SurveyUtilities().getSurvey();
</g2:evaluate>
<p>${gs.getMessage(out)}</p>
</j:jelly>

I am getting output like this.

find_real_file.png

6 REPLIES 6

Can you explain what you are trying to achieve here? - I have prepared a HTML data (JavaScript code prepares this HTML code) in that script include & I need to show that in dashboard using dynamic content blocks

the script include function what and what you want to do with the values - When I load the dashboard then it should run the script include

Are you saying the value which is coming from the script include function should be set in that text box? - The Value from script include needs to be set on dashboard directly

Megha Padale
Giga Guru

Hi,

Adding to Pratiksha, check this

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

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha.