Field with URL: Can the URL be clickable?

Hello,
I have a field which contains URL. Is there a way to make the URL for each record clickable?

Thank you!

Thanks! I figured that right-clicking allows ‘Open Link’.

Upon reading this post, I thought “really? I don’t remember implementing that”. On further research, I discovered that this is a feature of macOS when you select a link in text being edited. Cool!

However, this does require some extra steps, you have to double click on the cell, then select the text, then right click on it. (Or I guess you could just tab and then right click.)

If you want to be able to open the link without having to open the cell, you could write a short procedure. Here is the code to open any link in the currently selected cell.

openurl «»

Or, if you know the link is always in a specific field, for example URL, then this code would open the link no matter what cell is currently selected.

openurl URL

Note that in either case, the field must contain a complete url, for example

https://somesite.com/path/to/webpage.html

A partial path won’t work. If the cell contains this:

somesite.com/path/to/webpage.html

it won’t open the URL. However, if all of the cells use this format, you could adjust your code to get it to work.

openurl "https://"+URL

Thank you, Jim!

I wonder whether I have implemented you advice correctly:

I added the openurl «» into the ‘code’ property of the ‘URL’ field. To go to the web page relating to the link in that field in a record, once O am in the cell, I press the Fn + Enter key, and this bring the web-page

image

On the form layout, I added openurl URL in th procedure property. He after I enter the cell and press ‘Return’ key, it bring up the web-page on the browser.

Very elegant set-up! Thank you!

Naren

Actually that wasn’t what I had in mind, but if that makes you happy, great!

What I was thinking you would do would be to create a named procedure in the Action menu, possibly with a keyboard shortcut.

@admin Thank you, Jim! I have now set up an action menu with a keyboard shortcut. Yes, this is a more elegant solution!