This topic is locked
[SOLVED]

 Calculating a Field

11/15/2019 7:09:54 AM
PHPRunner General questions
gehrenfeld author

When I run this in either edit or add mode can change the Miles field, I get nothing in the mile_pay field.
This is in the Client Before

var ctrlMilepay = Runner.getControl(pageid, 'mile_pay');

var ctrlMile = Runner.getControl(pageid,'Miles');

ctrlMilepay.setValue(this.getValue() + (.58 * ctrlMile.getValue()));
return false;
D
DealerModulesDevClub member 11/15/2019



When I run this in either edit or add mode can change the Miles field, I get nothing in the mile_pay field.
This is in the Client Before
*var ctrlMilepay = Runner.getControl(pageid, 'mile_pay');

var ctrlMile = Runner.getControl(pageid,'Miles');

ctrlMilepay.setValue(this.getValue() + (.58
ctrlMile.getValue()));
return false;

**


Hi Gary,

Have you seen this post?

https://xlinesoft.com/articles/how_to_use_calculated_fields.htm

HJB 11/15/2019

Try "return true" instead of "return false".