Jump to content

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

Recommended Posts

Posted

Hello,

First want to be sure i mention that I really do appreciate the folks in these forums for all the help. I have a few books and do try to hit them first before i ask for help here, but just so it's clear - appreciate all the help!

now for a question;

I have a date field, which I want to validate, i simply want to make sure they do not type a date less than today

something like this I use for validation calculation: Date_Due ? Get(CurrentDate)

I also put in a custom message, which says the name of the field and is a little more polite than FM7s stock message.

fine.

I have a layout called Edit Record and then I have a button (actually a few buttons) which take the user to different places. When any of them are pressed i want to save the record - so I enabled in the layout 'automatically save record'.

When i click the "return to main screen' button, the record is validated and my message pops up saying "Uh, Please use todays date or a future date for this field, thanks." - and it has "Revert Record" and "OK" buttons. One question is how can I change "Revert Record" something like uh maybe "Cancel"??

next, after that message appears, my script is now running to go to the "main screen" layout. and FM7 pops up a message "go to layout has been cancelled, do you wish to continue with this script?" and the buttons "cancel" and "continue" are there.

I don't want that additional message, i just want the first message.

How do you guys handle this? Or do you just do your own custom validation in a script?

thanks,

sincerely,

J__

Posted

You can make filemaker error dialogs go away by using the set error capture script step in your script. Then it's up to you to trap for all the possible errors show messages to the user.

Posted

thanks.

I actually realized this or thought I did after i sent the mail ... and then was playing around with Set Error Capture for another reason .. and saw it disabled the dialogs from appearing...

do you know what the "Revert and Cancel" dialog corresponds to for error messages?

any other additional tips on how to handle this?

thanks,

sincerelry,

J__

This topic is 7390 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.