October 19, 200025 yr Newbies Here I am again, getting closer to finishing this project, but again stuck on if statements. I'm confused about FMP-If statements. What are the required tags needed and where does the If and else statement go? (I'm using Homepage and the filemaker_forml.hlb). I want to compare a number that has been entered into a global field with a indexed field from another database. I'm hoping something like this will work [FMP-IF: streg: assword .cn. gPassword] Show this link [/FMP-If] I've searched the web and found lots of info about FMP-If, but very few examples of the actual code and where it needs to be placed. If anyone can help, I would be most appreciatative. T. Miller
October 20, 200025 yr This example colors the table data cell (<TD>) red if the contents of the "Wire6" field is "No 5MD1 !": [FMP-IF: field: Wire6 .eq. No 5MD1 !] <TD ALIGN=CENTER BGCOLOR="RED"> [FMP-Else] <TD ALIGN=CENTER BGCOLOR="#AFEEEE"> [/FMP-IF] The following allows you to use one CDML page as a detail record page for edit, duplicate, and delete. Simply put the code for each section withing the tags... [FMP-If:currentaction.eq.edit] <!-- Edit --> [/FMP-If] <!-- Edit --> [FMP-If:currentaction.eq.find] <!-- find --> [/FMP-If] <!-- find --> [FMP-If:currentaction.eq.delete] <!-- delete --> [/FMP-If] <!-- delete --> [FMP-If:currentaction.eq.new] <!-- New --> [/FMP-If] <!-- New --> [FMP-If:currentaction.eq.dup] <!-- Duplicate --> [/FMP-If] <!-- Duplicate -->
Create an account or sign in to comment