This topic is locked

How to reset values

4/16/2008 10:16:50 AM
PHPRunner General questions
K
kklh author

Hi
I have a date value and a chechbox i want to reset to blank and unchecked on the edit page (there is values for them in the database)

how to do it.
regs. Kim.

J
Jane 4/17/2008

Kim,
use Edit page: Before display event on the Events tab for this purpose.

Here is a sample code:

$smarty->assign("value_FieldName","");



where FieldName is your actual field name.

K
kklh author 4/17/2008

Kim,

use Edit page: Before display event on the Events tab for this purpose.

Here is a sample code:
where FieldName is your actual field name.


Hi Jane .
Maybi i am a little stupid, i tried this in the edit page:
events: -> before record prosess - add custom code ( there is no before display)
The error is " Undefined variable: smarty "
reg. Kim.

K
kklh author 4/17/2008



Hi Jane
It works thanks.

reg. Kim.

J
Jane 4/18/2008

Kim,
what version of PHPRunner do you use?

K
kklh author 4/19/2008

Kim,

what version of PHPRunner do you use?


Hi Jane it works fine, it was only me there were blind.
reg Kim.