Phil Posted July 8, 2000 Posted July 8, 2000 Hi there, I'm creating a "Submit" button that runs a script to validate a number of fields on a layout (rather than validating every single field one at a time) and then tells the user what needs to be fixed. Based on some suggestions so far, I have created a number field "Record Acceptable" and "Status Message", a global text field. The intention is that for each record, "Record Acceptable" will be set to 1 for OK and 0 for not. Meanwhile, "Status Message" will be cleared and then text gradually entered into it....but only if a field is not validated. So the end, result...I want a message to pop up...saying... "There were problems and they are as follows..." etc etc. Here's what it is so far and I'm not sure why it isn't working. Also, can I get all this info (if they made lots of mistakes) to appear in a message or window ?? How :? Cheers, Phil ---------------- Set Field [Record Acceptable, Record Acceptable = 1] Set Field [status Message, Status Message=""] If [isEmpty(First name)] Set Field [Record Acceptable, Record Acceptable = 0] Set Field [status Message, Status Message= Status Message + "The first name is missing" + "
Kurt Knippel Posted July 8, 2000 Posted July 8, 2000 The Set Field command always OVERWRITES the contents of the field with the new contents. Use the Insert Calculated Result, making sure to uncheck the "Select" option and you should get what you are looking for. ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Senior Filemaker Developer http://www.inthescene.com mailto:[email protected] =-=-=-=-=-=-=-=-=-=-=-=-=
Recommended Posts
This topic is 8909 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