Display hyperlink instead of full url in URL field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2016 10:02 AM
Good morning,
Yesterday I got some help from ctomasi and it's working great! Can we concatinate 2 fields to complete a URL?
Recap.
I have a URL field that is created by concatenating 2 values. For extra credit, I would like to show a hyper link rather than the full ugly URL on the form. Can this be done?
Please advise and thank you!!!
Regards,
Carl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2016 11:01 AM
It's a URL field and it's clickable already, and works great. It's just ugly. The question is how to display a nice looking hyper link. Like "LINK" rather than the long URL it is showing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2016 11:04 AM
Ah, I see. Thank you for the clarification.
Let me see... I have an idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2016 11:05 AM
Trust Chuck to come up with something amazing! He'd almost never leave you hanging!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2016 11:07 AM
Zero doubt! Thanks all!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2016 01:03 PM
Write an onLoad client script on this table and put this script in there. See the comments highlighted for the syntax.
function onLoad() {
var url_id=$('incident.u_url_field_link'); // $('<table name>.<fieldname_link>');
//Event.observe('<table name>.<fieldname_lock>', 'click', function(){
Event.observe('incident.u_url_field_lock', 'click', function(){
if(url_id.text!=''){
url_id.text='put the text you want to display here';
}
});
if(url_id.text!=''){
url_id.text='put the text you want to display here';
}
}