July 8, 200025 yr 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" + "
July 8, 200025 yr 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] =-=-=-=-=-=-=-=-=-=-=-=-=
Create an account or sign in to comment