Brian Dunning's FileMaker Custom Functions

YTobject ( yturl ; w ; align )

Easily insert YouTube videos in Web Viewers and in text fields that are used to drive dynamic web sites

  Average rating: 4.1 (41 votes) Log in to vote

Oliver Reid   Oliver Reid
First Growth Management LLC

Share on Facebook Share on Twitter

  Sample input:
  Sample output:

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

See comments in function definition.

The function automatically sets padding and border values so that if inserted into a text field which is delivered to a dynamic web page the Video player is appropriately sized and placed with text.

Thus an interface on the FM side can easily insert videos in web news stories, etc.



Bob Harlow   Bob Harlow, Greenbrae, CA
Oct 19, 2011
Has anybody done this for private videos stored on Vimeo? Those urls don't seem to work as well in FileMaker web viewers.
Jason   Jason, Edmonton, AB
Feb 27, 2012
Thanks very much for this. Worked like a charm (after I saw I only needed the URL from the YT embed code)

Melvin Simmons   Melvin Simmons, Chicago, IL
Jan 27, 2013
I just have a couple of questions about how to install the function.

1. Do I first create a web viewer on a layout and call YTobject from within a custom URL?

I would like to use this within FM GO locally on an iPad or iPhone.
2. Could you give a few more details on how to implement this?

Have tried putting a web viewer on a layout to display YouTube videos. The video will not center properly. That's why I want to use your function.

Thanks in Advance

Melvin Simmons

Log in to post comments.


Note: these functions are not guaranteed or supported by 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 15 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:

Under construction. Email me your wish list for improvements.