Wingwalker Posted April 25, 2005 Share Posted April 25, 2005 In define database options I currently have, in most of my fields, this calculation to keep anyone from entering a return instead of tab. not PatternCount(NameFirst; "¶") >= 1 If a return is entered the following dialog comes up, Carriage return cannot be entered. Either press the tab key or click directly into another field. This works great, but I also want to include "Not Empty" into the options. The Problem is if the field is left empty the same dialog shown above comes forward. Is there a way to have one dialog for the return and another for the unique? Thanks a lot Link to comment Share on other sites More sharing options...
CobaltSky Posted April 25, 2005 Share Posted April 25, 2005 Nope, I'm afraid there is only one dialog message for all validation. I wish it were otherwise. There are several ways you might approach the problem. Here are a few: 1. Construct a 'generic' validation message which mentions both issues on one breath. 2. User a plug-in to trigger your own validation process via scripts, with custom messages. 3. Set up custom navigation that requires users to click a button to leave the screen - and have that button run a script which does all the validation checks and posts appropriate alerts. and last but not least: 4. If you're using FileMaker 7, simply set up an auto-enter calc (with the 'do not replace' option turned off) to strip returns from the field after users exit it. Eg with a formula along the lines of: Trim(Substitute(YourField; ¶; " ")) - and then focus your validation efforts exclusively on the 'not empty' issue. Link to comment Share on other sites More sharing options...
Wingwalker Posted April 26, 2005 Author Share Posted April 26, 2005 Hi Ray, I do use FMP 7 and the "Auto Enter Calc" was perfect. Thanks, it works great. Link to comment Share on other sites More sharing options...
Chrismo Posted December 28, 2006 Share Posted December 28, 2006 That worked great for me too. Much thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.