Display value of a URL field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 05:22 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 05:30 AM
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.