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

Hello @Community Alums 

 

in short term replace & to &amp;

 

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

 

Regards,

Samaksh

Community Alums
Not applicable

@Samaksh Wani I was getting same error on the form now

 

himavamsi-k
Tera Contributor

May I know your requirement?

Community Alums
Not applicable

@himavamsi-k I need to open  the email template in a new window when i click on the button.