This topic is locked

Stack Values in List "view as" Custom

3/14/2010 11:44:04 AM
PHPRunner General questions
G
greener author

Hi,

I am trying to force a return and stack the values of two fields in the list view using php runner.

in my example I have two fields "email_mother" and "email_father" and in the custom "view as" in "email mother" I have the following php:
global $data;if ($data["email_father"]) $value = $value." ".$data["email_father"];
the goal is to display
email_mother

email_father
Thank you!!

G
greener author 3/14/2010



Hi,

I am trying to force a return and stack the values of two fields in the list view using php runner.

in my example I have two fields "email_mother" and "email_father" and in the custom "view as" in "email mother" I have the following php:
global $data;if ($data["email_father"]) $value = $value." ".$data["email_father"];
the goal is to display
email_mother

email_father
Thank you!!



ok figured it out. So for the other "newbie php" people out there..
global $data;

if($data['email_father']) $value = $value."<br/>".$data['email_father'];

global $data;$value = $value." ".$data["cell_father"];