Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8909 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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" + "

Posted

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]

=-=-=-=-=-=-=-=-=-=-=-=-=

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.