Is there any way to insert two urls in URL type field and each should be clickable.

Peter Wood
Kilo Guru

We have URL type field and we want to store multiple urls in it. How we can do this or is there any alternative for this to do.

Note - each link should be clickable.

Thanks.

20 REPLIES 20

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

not possible

Better to use another custom field which would hold multiple URLs comma separated

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

Can you tell me which field type we can use for this?

Hi,

since you want link to be clickable please use Journal field to hold these values.

Journal fields allow data to be shown in HTML format and the links

sample below

var url1 = '[code]<a href="https://www.servicenow.com">ServiceNow.com</a>[/code]';

var url2 = '[code]<a href="https://www.google.com">Google</a>[/code]';

current.journal_field = url1 + '\n' + url2;

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Where I need to put this code,

And there is no any fix url number