This topic is locked
[SOLVED]

 Calculate on view page

10/14/2016 2:44:56 PM
PHPRunner General questions
greggk author

Hello,

I have a project that has a bunch of on the fly calculations on the add and edit page.

Those work great, but then on the view page, none of those calculations get transferred, because they were just text on the add and edit pages, and not actually in any fields.

How can I do those same calculations on the View page?

Here is an example:



$('p#sh1sum500').html($('#value_sh1afl500_1').val() * 500 ).add

$('p#sh1sum100').html($('#value_sh1afl100_1').val() * 100 ).add

$('p#sh1sum50').html($('#value_sh1afl50_1').val() * 50 ).add


I can't use that same calculation on the View page, because there is no field value, it's just a text with the value.

Any thoughts?