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 - Show more from this author
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.

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: