June 22, 201015 yr 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?
June 22, 201015 yr 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).
June 23, 201015 yr Author 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, 201015 yr by Guest
June 23, 201015 yr 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.
June 23, 201015 yr Author 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, 201015 yr by Guest
Create an account or sign in to comment