Brian Dunning's FileMaker Custom Functions

ValidURL ( style ; URL )

Validates and reformats formats URL, extracts domain, supports mailto & callto

  Average rating: 3.9 (60 votes) Log in to vote

Roger Biel   Roger Biel
2Geckos Consulting, LLC
www.2geckos.com

Share on Facebook Share on Twitter

  Sample input:
ValidURL ( "Domain" ; www.2Geckos.com )
ValidURL ( "URL" ; filemaker@2Geckos.com )
ValidURL ( "www" ; www.2Geckos.com )
ValidURL ( "link" ; www.2Geckos.com )
  Sample output:
2Geckos.com
mailto:filemaker@2Geckos.com
http://www.2Geckos.com/
www.2geckos.com

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

I'm worked on this function for a long time and have been adding features that I've found useful in many scripts and auto-enter fields.

Although it is working great I would appreciate any feedback or suggestions on how to improve it.

 

Comments

IKBM   IKBM, Florida
May 2, 2012
Is there a dependency to ValidEmail()? Where can I get that?
 
Roger Biel   Roger Biel, Casa Grande, Arizona
May 2, 2012
My apologies for not uploading ValidEmail(), that is used in this function. It is now uploaded.
 
Gianluca   Gianluca, Milan
Dec 19, 2015
Ciao Roger,

The function is not working with italian .it sites.
 

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: