Conditional Field Validation / Window Menu Bar Customization
Posted: Mon Dec 11, 2006 7:51 am
I am creating a form in which I have conditional fields, that is, fields which ideally could only be entered/enabled if, say, a check box was selected. In many applications, this would appear on the interface as, say, a "grayed out" group box that you would have to enable as a group by selecting a check box or radio button or something. This doesn't seem to be possible using FileMaker. Does anyone know a slick way around this issue? Assuming that no one does, I would like to make it so that when a user finishes completing a form, a script runs to ensure that if the user entered data into the conditional fields but did not select, say, the check box that "enables" that group of fields, a dialogue displays saying something to the effect of "Hey, it looks like you want to enable this option, but you didn't, so either clear out the conditional fields or enable the option." The problem with this technique seems to be that if the user exits the form by using the X on the menu bar of the window, or the close command from the File menu, they have essentially circumvented your script and the form will not be validated. Hopefully this whole scenario makes sense (if you need clarification please do ask). Any help would be greatly appreciated.