We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to add URL into system properties and refer it from html code ?

Not applicable

How to add URL into system properties and refer it from html code ?

5 REPLIES 5

Mohith Devatte
Tera Sage

Hello @Awais Ahmed ,

you can add it in value field as a string 

But do you want to access that in widget HTML code?

Not applicable

Yes @Mohith Devatte , How about the Suffix in SYS Property ? What is it ?

@Awais Ahmed add your URL in values field of the sys property 

When you come to your widget you can write this in server script

SERVER SCRIPT:

data.url = gs.getProperty('you_property_name');

 

HTML:

<a href={{data.url}}>Click Here</a>

 

Hope this helps 

mARK MY ANSWER CORRECT IF THIS HELPS YOU

Not applicable

Thanks @Mohith Devatte, Just make sure to put data.url in {{}} -> href={{data.url}}. It's Working.