Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

When I add or edit a record in a portal (FM9adv) one particular field validation rule doesn't trigger until I click outside the portal on the layout (Clicking on another row or adding multiple records doesn't seem to trigger it). The validation is for uniqueness on a field that has an auto-entered calculation. Other validation rules triggger as expected. This field is defined to validate 'Always'. Anybody have any suggestions?

Posted

Um, dunno.. Does it depend on the form of storage (indexing on /off)? Are their calculation fields or relationships that use this field?

Posted

I've never seen the behavior before, and as I said it isn't a problem with other validation rules. I tried it in two different layouts, turned indexing on and off. No complex relationships either - just two tables involved. Real FMP 101. I figured somebody on this forum would've seen the behavior and say "oh, yeh, that's because FM doesn't yadda yadda so that happens with a portal that blah-dee-blah.

Clearly I'm in uncharted waters.

Posted

What fields are listed in the validation? Any field listed must be present on the layout. Maybe that is why it is happening?

Posted

I have tested this and I am getting the same result. It only happens when the field validation is set to 'unique' (and possibly to 'existing', I haven't checked this) AND the field has some auto-entered data/calculation. In this situation, the field is validated on record commit, rather than on field exit.

Validating 'always' and/or the field being in a portal has nothing to do with this, AFAICT.

When version 7 was released, Filemaker had a note in their Knowledge Base saying that:

Unique and existing field validations must be done at commit time in order to lock out other users from invalidating the checks made to the data. This means that instead of getting the validation error when you click out of the field for unique or existing validation, you will get it at the time the record is committed.

However logical that may sound, when 7.0v2 update came out, the release notes said:

1.2. Unique or existing validation on a field now triggers when you exit the field rather than when you commit the entire record.

It seems that this is true - EXCEPT when the field has auto-entry turned on.

Posted

Validating 'always' and/or the field being in a portal has nothing to do with this, AFAICT.

Ouch. I discovered that last night - I had been falsely assuming that the portal was involved because i thought that FM was cacheing the record changes and only forcing a commit on portal exit. But as you say it's more insidious.

It looks like I'll have to force data entry in a popup window and script the commit. How lame.

I can't wait for FM to add event triggers.

Thanks for your help.

Posted

It might be because the validation is "by calculation".

  • 4 weeks later...
  • Newbies
Posted

I am running into the same problem attempting to trigger a validation base on a value list. I have picked up somewhere that validation occurs immediately if information is entered directly into a field (Validation upon leaving field) but is delayed if information is brought in through a related field (I would assume portals would fall in this category as well as value lists). This leads to validation on commit rather than entry. I need a workaround for that as well.

I need to be able to validate immediately as of leaving field when you are using a value list radio button setup. Any help will be welcome.

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