This topic is locked

Field value on Print Page

1/17/2017 8:41:17 AM
PHPRunner General questions
M
macskafogo author

Hi !
How do I display the field value on the print header ?
Thanks.

Sergey Kornilov admin 1/19/2017

The question doesn't make much sense in the way it is asked. Printer friendly page lists many records and it is not clear which record value to display in the header.

lefty 1/20/2017



The question doesn't make much sense in the way it is asked. Printer friendly page lists many records and it is not clear which record value to display in the header.


On visual editor highlight area where you want field value as you cannot ask for record values as there are many ( you must make a session value first in before process page or after successful login page) , then go to html mode and type inLike First Name and Last Name:{message1}

same for a second data field - Other Nameormessage:{message2}

or for putting in todays date : go to html mode again - Date:{message3}

These fields should show on your printer friendly pages as yellow boxes message1 , message2 , message3 and just place where you need them on the page . Usually on top . you can type your message next to these fields on visual editor or in html mode if you are more familiar with html5.
Then go to printer friendly page before display event
$xt->assign("message1",$_SESSION["FirstName"] . " " . $_SESSION["LastName"]);

$xt->assign("message2",$_SESSION["Myfieldvalue"]);

$xt->assign("message3",strftime("%m-%d-%Y"));
Save Data in Session Values
This is it.