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

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

Recommended Posts

Posted

I am looking for a way to do some validation to keep users from leaving empty fields behind when creating a record. I can't use field validation to not allow the field to be empty because that only works when the field is active. If the user never enters the field the validation is never triggered. I can't just force the user into the field when the record is created because a line item has to be selected first before the field in question can be populated.

Is there any equivelent to onrecordexit?

Posted

I can't use field validation to not allow the field to be empty because that only works when the field is active. If the user never enters the field the validation is never triggered.

That is not correct. If a field cannot be left empty, validate the field to be not empty in the field's definition.

Don't confuse field validation with script triggers. Script triggers apply at the layout level. Validation applies at the field level. Field level validation cannot be by-passed. Layout level validation can (just use a different layout).

Posted (edited)

I stand corrected. So now I have validation set on the field but that brings up a different problem. I have the creation of records scripted in this case and the process requires creating the record and then going to another layout to set some other fields and then returning to the new record ready for data entry. but of course now the script fials because of the new validation. Is there a way for the script to overide validation?

Edited by Guest
Posted

Is there a way for the script to overide validation?

Yes.

Use the Commit Record/Request step with the "no dialog" and "skip data entry validation" options selected. Read the help topic on this step for a couple of conditions that must be met to make this happen.

Posted (edited)

I figured it out. I put an auto enter on the field so it is not empty when created so the script can do it's thing. Then the script clears the field to await user input when it's done.

Edited by Guest
Posted

I will look into the commit rcord/request as well. Thanks for the help. :

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