currency field format |
6/17/2008 7:13:07 PM |
PHPRunner General questions | |
B
bobby123 authorDevClub member
I have a dropdown field where my user can select PS & EURO, and a currency field where my user enters a currency amount say (100) |
|
J
|
Jane 6/18/2008 |
Bobby, global $data; if ($data["CurrencyType"]=="EURO") $value = "€".$value; if ($data["CurrencyType"]=="PS") $value = "£".$value;
|
B
|
bobby123 authorDevClub member 6/18/2008 |
Bobby, to change currency format on the fly use custom format on the "View as" settings dialog on the Visual Editor tab for your currency amount field. For example is these two fields are in one table use this code: where CurrencyType is your actual field name. |
B
|
bobby123 authorDevClub member 6/18/2008 |
Bobby, to change currency format on the fly use custom format on the "View as" settings dialog on the Visual Editor tab for your currency amount field. For example is these two fields are in one table use this code: where CurrencyType is your actual field name.
|