Brian Dunning's FileMaker Custom Functions

GetURLAtSelection ( )

Gets the URL in a textfield

  Be the first to rate this function Log in to vote

Mars Aussendorf   Mars Aussendorf - Show more from this author
Mars Consult

Share on Facebook Share on Twitter

  Sample input:
Some text containing fully displayed URLs
  Sample output:
An URL

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

When entering a field, this function will return the URL if it is at the position where you click.
Apply in a triggered script (OnObjectEnter) to actually open the URL.
Use this function in conjunction with my CF 'Format_URLs' to have URLs highlighted in the textfield.

This CF is based on the excellent idea of Wakido: https://web.wakido.com/downloads/hyperlinks-in-text-fields/

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: