This topic is locked
[SOLVED]

Display value in field on Add page form

11/23/2022 11:16:40 PM
PHPRunner General questions
S
Sayed author

Please, guide OR help to understand. How to handle it. Its simple question but I am new.

if ( $pageObject->pageName == "Add" ) {
$values["Type"]="Invoice"; }

else if ( $pageObject->pageName == "Add1" ) {
$values["Type"]="Payment"; }

There are 2 Add pages ( Add and Add1 )
Above code is working fine and saving data.
On Add Page, field remains empty.
Question is, how can I display value (Invoice OR Payment) in field of Add page?

I would appreciate. Thanks in advance.

admin 11/24/2022

Check Process Record Values event of the Add page.

S
Sayed author 11/24/2022

if ( $pageObject->pageName == "Add" ) {
$values["Type"]="Invoice"; }

else if ( $pageObject->pageName == "Add1" ) {
$values["Type"]="Payment"; }

I have above code in Process Record Values Event.
Value appears for less than a second and then field becomes empty.