add button beside field using ui macron

Community Alums
Not applicable

Hi,

for adding button beside the field i have used ui macron to create it. The below is the code i used in ui macron

 

 

<?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:sc_button id="email" title="email" label="email" onclick="emailFunction()" />
<script language="javascript">
var a="https://dev179274.service-now.com/email_client.do?sysparm_table=incident&sysparm_sys_id=f8f99d504755...";
window.open(a,"_blank");
</j:jelly>

 

 

It is showing error on var a line can anyone suggest me how to call these url these url is email template

9 REPLIES 9

Samaksh Wani
Giga Sage
Giga Sage

Hello @Community Alums 

 

you should have to add the closing tag for script

 

</script>

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Community Alums
Not applicable

@Samaksh Wani Here i missed to paste it. In the script there is </script>. But still it shows error on var a line

Hello @Community Alums 

 

Can you show me the error.

 

 

Community Alums
Not applicable