The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Form OnValidate Always Firing
Posted: 20 Apr 07 11:21 AM
|
fiogf49gjkf0d It was my understanding that OnValidate was only supposed to fire if data changes are posted.
On my opportunity form, the OnValidate is called every I go from record to record. I would like it to only be called when a value on the form changes .. I don't want someone just flipping through the records to be required to enter the fields...
I tried adding an onChange event to the visible controls, and only if those controls fired the onChange set a flag to Validate. OnChange fires when I move from record to record.
And Advice would be great - Thanks! |
|
|
|
Re: Form OnValidate Always Firing
Posted: 20 Apr 07 12:20 PM
|
fiogf49gjkf0d The On Change events have always fired on the FormChange..
I have not had any problems with the OnValidate.. only firing when a form change has been made..
Id it not processing the validation.. what is making you think it is not or is working too much..? |
|
|
|
Re: Form OnValidate Always Firing
Posted: 22 Apr 07 6:54 PM
|
fiogf49gjkf0d I haven't checked that this, but perhaps you have some background code in the form's OnChange (or some similar event) which always updates a text box/field (perhaps even to itself) - thus forcing OnValidate to fire every time? |
|
|
|
Re: Form OnValidate Always Firing
Posted: 22 Apr 07 11:09 PM
|
fiogf49gjkf0d That is what I was thinking .. I tried to step through all the code, and so far I haven't seen anything doing that.
I will continue to look through all the code. |
|
|
|