Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditioning field properties on layout 1

Status
Not open for further replies.

GrahamIoM

Programmer
Nov 17, 2005
2
GB
I am creating a simple layout using Filemaker Pro-7.
What I want to do is show one of the fields as "hidden" and then, when a button is pressed, display the field contents. The application is a simple "flash cards" application - show a word, guess the translation and click the button to see if you guessed right....

Any suggestions as to how I might be able to do this?
 
My first thought would be to have 4 fields:

Word
Translation
Translation_Mirror
Show

You already should have the "Word" and "Translation" fields. Make the "Translation_Mirror" field a calculated field with a calculation like this:

If (Table_Name::Show = "True"; Translation; "")

Then make a button that sets the "Show" field to the value of "True" when it is pushed.

What this will do is make the "Translation_Mirror" field show the contents of the "Translation" field if the contents of the "Show" field is "True". If the "Show" field is empty then the "Translation_Mirror" field will be blank.

-Striker
 
After playing around with this, I have ended up with two layouts;

Layout 1 shows the non-translated word. Button links to alternative format (layout 2).

Layout 2 shows the translated word etc. Button links to script <Go to Next record> then <Go to layout 1>.

 
Yup. That would work too. Like most programming, there's more than one way to skin-the-cat.

-Striker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top