Ron Cates Posted June 22, 2010 Posted June 22, 2010 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?
Vaughan Posted June 22, 2010 Posted June 22, 2010 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).
Ron Cates Posted June 23, 2010 Author Posted June 23, 2010 (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 June 23, 2010 by Guest
Vaughan Posted June 23, 2010 Posted June 23, 2010 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.
Ron Cates Posted June 23, 2010 Author Posted June 23, 2010 (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 June 23, 2010 by Guest
Ron Cates Posted June 23, 2010 Author Posted June 23, 2010 I will look into the commit rcord/request as well. Thanks for the help. :
Recommended Posts
This topic is 5541 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 accountSign in
Already have an account? Sign in here.
Sign In Now