tfertil
Posts: 43
|
| Posted: 12/22/2010, 6:20 PM |
|
Hi,
I got a record in an includable page, and I assigned a BeforeInsert and a BeforeBuildinsert.
I put debug sentences in both events code:
echo "something"
to check, and the events are NOT triggered.
Is there something I must check?
Thanks,
--------
[SOLUTION]
I was trying to establish the value for a required form field in the BeforeInsert / BeforeBuildInsert events, but the validation for required fields is done BEFORE this events can be triggered.
Because the field was empty at the validation time, it never reach the insert point.
I now initilize the value in the BeforeShow event of the form and everything is working OK.
|
 |
 |
|