J
|
Jane 9/4/2008 |
Hi, global $data; if ($data["age at diagnosis"]>'40') $value="A3"; |
V
|
vytb author 9/5/2008 |
Hi, use custom fornat for your field A on the "View as" settings dialog on theVisual Editor tab. All field values are stored in teh global $data array. Here is a sample:
|
J
|
Jane 9/8/2008 |
It's difficult to tell you what's happening without seeing actual files. |
V
|
vytb author 9/8/2008 |
OK, it's at http://demo.asprunner.net/vytb_videotron_c.../visit_list.php, field A that should indicate A1, A2, A3 depending on the age_at_d. |
J
|
Jane 9/9/2008 |
Here is the correct code: global $data; if ($data["age at diagnosis"]<16) $value="A1"; if ($data["age at diagnosis"]>=40) $value="A2"; if ($data["age at diagnosis"]<40 && $data["age at diagnosis"]>=16) $value="A3"; |