In Jelly script, what is tag g use for?

Mohammed Al-Mar
Tera Guru

In UI Page com.glideapp.servicecatalog_cat_item_view there is a tag 'g' looks like it's used to include kind of UI

<g:catalog_item />

 

 

<j2:if test="$[jvar_cat_item_authorized]">
      <div id="cat_item_view" class="" sn-atf-blacklist="IS_SERVICE_CATALOG">
        <input type="hidden" id="log_variable_actions" name="log_variable_actions"  value="${gs.getProperty('glide.sc.log.variable_actions')}" />
        <g:catalog_item />
	   
	    <j:if test="${new GlideappScriptHelper().isUI16Enabled()}">
			<script>
				catalogHistory.setHistory('$[HTML,JS:sc_cat_item.name.getDisplayValue()]', catalogHistory.getPageUrl());
			</script>
	    </j:if>
	    </div>
   </j2:if>

 

 

Q: what is that tag 'g' use for?

 

1 ACCEPTED SOLUTION

Mohammed Al-Mar
Tera Guru

I found the solution; the tags 'g' and tag 'g2' in ServiceNow UI Pages are used to include UI Macros.

View solution in original post

2 REPLIES 2

Nayan  Dhamane
Kilo Sage
Kilo Sage

Hello @Mohammed Al-Mar ,

Kindly view the below articles which might answer your query:

Jelly tags

Extensions to Jelly syntax

 

Kindly mark as correct based on impact.
BR,
Nayan

If my answer solved your issue, please mark my answer as Correct & Helpful based on the Impact

Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.

Mohammed Al-Mar
Tera Guru

I found the solution; the tags 'g' and tag 'g2' in ServiceNow UI Pages are used to include UI Macros.