Jump to content
Sign in to follow this  
Curlydave

Modifying item properties with a script

Recommended Posts

How can I modify the properties of a textbox, input field, etc using a script? I'm trying to do 2 things: Having my print script delete the header labels for some text fields if the fields are empty, and having a button disable input into certain fields. For the second one, I know you can do this with behavior property, but I can't find this in the script menu.

To get rid of the header labels, the most elegant solution would be something like "If IsEmpty(table::field), delete label1". Alternatively, it could change the text value of label 1 to "", or set the color to white. Is there a way to do any of these things?

edit: I can't even find unique identification for the labels, so I don't even know how I'd call them.

edit 2: I found a workaround for the first problem: I used fields instead of labels for the labels, and modified them using the "set field" command. This works, but isn't a very elegant solution.

Edited by Guest

Share this post


Link to post
Share on other sites

It sounds like you are in serious need of conditional formating... 9 would take care of most of your problems quite easily:

http://sixfriedrice.com/wp/filemaker-9-tip1-hiding-something-on-the-layout/

Share this post


Link to post
Share on other sites

Thanks for the info. I thought software companies had moved past the days when they'd charge you for a new version instead of patching in common-sense features. :

Edited by Guest

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.