Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

To enable the request from URL(www.gmail.com) Link beside the Backup Enabled field on the form

Veera1986
Tera Expert

 

Create a Field: Backup Enabled

Type: Integer

Choices: Yes/No

Implementation:

Create UI Macros:

Name: Backup_Enabled_URL

UI Macros Script:

-----------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8" ?>

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

 

<j:set var="jvar_n" value="open_fs_url"/>

<span id="${jvar_n}" onclick="open_fs_url()" title="Open Link" tabindex="0" class="btn btn-default icon-open-document-new-tab">

<span class="sr-only">open_fs_url</span>

</span>

 

<script>

function open_fs_url(){

var url = "https://forms.office.com/pages/responsepage.aspx?id=hpAxLiaao0aGX2Fb7VdnhhRGXTwXerZKnXa_i7-LdXNUN1o5...";

window.open(url);

}

</script>

 

</j:jelly>

------------------------------------------------------------

Right click on “Backup Enabled” field and open disctionary

Add “ref_contributions=Backup_Enabled_URL” and save it

Result:

Veera19_0-1719950074209.png

 

 

Veera19_1-1719950074216.png

 

 

Veera19_2-1719950074219.png

 

This URL will open new window.

1 REPLY 1

Slava Savitsky
Giga Sage