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

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

Recommended Posts

Posted

Fellow FMers,

I want to write a script, which would be activated when I tab into the field. For example, if I type a duplicate value, and then attempt to continue the record, the warning message will show.

I can do this with a transparent button, but this takes care of “clicking” into the field, but does nothing for “tabbing”.

I tried "If(Status(CurrentFieldName)= "Fieldname", but that didn't work.

Any suggestions or recommendations are greatly appreciated.

Thanks in advance.

Posted

Well, one could do it with plain FMP by keeping the user in a script the entire time that they are on the layout and checking every second for the current field, but it's probably a whole lot easier to go the plug-in route.

Chuck

Posted

If what you want to do is show a message if a field value exist why not use validation instead of a scripted message. You can set the field to be unique and show message if not with choices to continue or not.

Posted

quote:

Originally posted by bobsmith:

If what you want to do is show a message if a field value exist why not use validation instead of a scripted message. You can set the field to be unique and show message if not with choices to continue or not.

Bobsmith,

That would be way easier, but the problem is that it is a calculated field, and I don't know how to set it to be unique, or to index it. I want to show a message if the value that was entered is a duplicate.

Example: My calc field is a combination of FieldA and FieldB. So when the user tabs out of FieldB, I want to show the message. Is that possible to do with a calculation? If yes, could you please specify details?

Thank you

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