bb
|
Posted: 03/24/2004, 10:17 PM |
|
Are there any examples of using a BeforeBuildInsert /BeforeBuildUpdate event to modify non-Visible form field values?
|
|
|
martin
|
Posted: 03/25/2004, 12:01 AM |
|
Hello.
You must insert custom Code in before insert/ or update.
$yourForm->yourHiddenField->SetValue("BlaBlaBla");
or
if($yourForm->yourHiddenField->GetValue() == "")
$yourForm->yourHiddenField->SetValue(CCGetUserLogin());
Just write the new value with SetValue to you hidden field.
Sorry about my english
Martin
|
|
|
bb
|
Posted: 03/25/2004, 10:09 AM |
|
Thank you for your help. Do you know if it possible to do without using hidden form fields?
|
|
|
peterr
Posts: 5971
|
Posted: 03/25/2004, 6:10 PM |
|
I do not believe so. But you can for example use Custom Insert and Custom Update and specify functions/expressions for each of the table fields, even those not included in the page.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
bb
|
Posted: 03/25/2004, 9:16 PM |
|
Thanks. I ended up doing an Insert with the Record Form and immediately thereafter an UPDATE for the fields not included in the form.
|
|
|