Newbies satmat Posted May 20, 2008 Newbies Posted May 20, 2008 Hello Everybody, I'm new to this forum and I'm also new to filemaker. I'm trying to create a script that will do the following: When I print, lets say 3 forms, I want that on one of the forms to be printed if a field named emergency is selected "Yes". Is this possible? Help is appreciated. Thank you in advance.
Brian C Posted May 20, 2008 Posted May 20, 2008 Go to layout [layout 1] page setup [restore, no dialog] print [restore, no dialog] go to layout [layout 2] page setup [restore, no dialog] print [restore, no dialog] if( table::emergency = "Yes" ) go to layout [layout 3] page setup [restore, no dialog] print [restore, no dialog] end if
Newbies satmat Posted May 20, 2008 Author Newbies Posted May 20, 2008 Thank you for your reply. Just another question: and if the answer is "no" can the script continue to print the remaining forms?
Brian C Posted May 20, 2008 Posted May 20, 2008 You only place steps inside of IF statements if you want specific criteria to determine wether or not something should happen or not. With how the example is structured above, if the answer is "No" the only form that will not print is the form that is encapsulated within the IF statement. The other 2 forms will always print since they do not have an IF statement surrounding them to make a decision on wether or not they should print.
Recommended Posts
This topic is 6032 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now