add/edit pages |
5/22/2008 10:46:19 AM |
PHPRunner General questions | |
G
garethp authorDevClub member
Hi design+tooling+project+production+installation AS cost
|
|
S
|
swanside 5/22/2008 |
Hi I have a caculated field that is 5 fields added together as follows in the edit sql query Is there any way I can see this in add and edit screen so that is updates as I change the fields before I click save? I would like to be able to see this formula changing as I edit each of the 5 fields. At the moment I can not see when I add the record what the total is. Thanks Gareth
|
J
|
Jane 5/23/2008 |
Gareth, |
G
|
garethp authorDevClub member 5/23/2008 |
Jane <script> {literal} var x = document.editform.value_design; var y = document.editform.value_project; x.onchange = x.onkeyup = y.onchange = y.onkeyup =function() { var design = document.editform.value_design.value; var tooling = document.editform.value_tooling.value; var project = document.editform.value_project.value; document.editform.value_tooling.value = parseFloat(design) +parseFloat(project); } {/literal} </script>
|
J
|
Jane 5/26/2008 |
Gareth, var design = document.editform.value_design.value; if (isNaN(design)) design = 0;
|
G
|
garethp authorDevClub member 5/26/2008 |
Jane
|