Brian Dunning's FileMaker Custom Functions

Show ( objectName )

calculates showing layout object based on active field

  Average rating: 4.6 (29 votes) Log in to vote

Hisc   Hisc
noplace
http://nourl

Share on Facebook Share on Twitter

  Sample input:
Show("FirstName")
  Sample output:
if FirstName is the active field, shows the object;

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

This function is made for using in "Hide object when", in inspector. The idea is to make as easy as possible to show/hide objects based on the current field. I use to show/hide explanations.

I set one object "Hide" as Show("FieldName") and other as Hide("FieldName"). Then, when the field is not selected, the object with Hide("FieldName") is shown, and, when the field is select, the object with Show("FieldName") is shown. I also use two ScriptTriggers in each field:
- OnObjectEnter: refresh window
- OnObjectExit: commit record + refresh window

 

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.

Under construction. Email me your wish list for improvements.