Jerry
|
| Posted: 05/24/2005, 12:27 AM |
|
I want to add a checksum validation for a field (named val).
I added an additional textbox (called checksum), and calculated and compared the checksums on the "on validate" event.
However, the "on validate" is also performed before form show, and since the checksums are not saved (and i also don't want to show them) the validation always fails on for show...
I tried to compare the checksums also on the "before submit" and on the "before execute update", but had some problems getting the values \ adding errors to the form.
Help?
|
|
|
 |
Nicole
Posts: 586
|
| Posted: 05/24/2005, 5:21 AM |
|
Jerry,
As I fast solution you can check form submit in onValidate event and run your code only if it is submit
global $form_name;
if ($form_name->FormSubmitted)
{
// your checksum code
}
_________________
Regards,
Nicole |
 |
 |
Jerry
|
| Posted: 05/24/2005, 6:02 AM |
|
Thanks Nicole.
Good idea, but i still have a problem.
I want to checksum only the new / updated values, but since the whole table is updated during submit it looks also for checkums of existing values.
What can i do about it?
|
|
|
 |
Jerry
|
| Posted: 05/25/2005, 12:11 AM |
|
I added a hidden field and solved it.
thanks.
|
|
|
 |
|