Display value of a URL field

Pedro Nascimen1
Tera Contributor

Hi,

I need to develop a requirement where a link should be placed on a specific ticket type form and opens the content in a new tab.
The link is a PDF a want to upload, somehow, to my SN instance instead of an external link.

I've tried a lot of things, tried to change the display value of a URL field or HTML field, but I couldn't achieve my goal.

However I want this field to not be editable, something like read-only, and URL field allows me to edit the link.

Any ideas?

Thanks in advance,
Pedro

1 REPLY 1

Chuck Tomasi
Tera Patron

Hi Pedro,



This requires some scripting. You'll need to use the URL as an endpoint for a GlideHTTPRequest(), then get the content and save it to the sys_attachment table, setting the table field to your current table and table_sys_id field to the current record's sys_id. While I haven't don this, it's do-able in theory. Perhaps this will help get you started.



https://community.servicenow.com/message/819157?_ga=2.122353867.1539337754.1499645371-350174358.1475...