[SOLVED] Â Problem getting calculated form/fields to work |
4/21/2015 8:22:52 PM |
PHPRunner General questions | |
M
mfriend author
Hi Support: <th class="rnr-gridfieldlabel rnr-field-number"> <span data-order="aSOIL_MOIST_0_1" id="order_SOIL_MOIST_0_1_1" name="order_SOIL_MOIST_0_1_1" data-href="FARM_FIELD_SCOUTING_REPORT_list.php?orderby=aSOIL_MOIST_0_1" class="rnr-orderlink"> Soil Moisture 0 to 1 FT </span> </th>
var ctrlorder_SOIL_MOIST_0_1_1 = Runner.getControl(pageid, 'order_SOIL_MOIST_0_1_1');
|
|
W
|
wpl 4/22/2015 |
Hi Support: I'm trying to set up a couple of calculated fields that are to be populated by running a JavaScript function. I'm trying to follow the example at: http://xlinesoft.com/articles/how_to_use_calculated_fields.htm I my form I have 3 fields: one that the user enters a number, and the other two are calculated from that. The code for the 3 fields are: <th class="rnr-gridfieldlabel rnr-field-number"> <span data-order="aSOIL_MOIST_0_1" id="order_SOIL_MOIST_0_1_1" name="order_SOIL_MOIST_0_1_1" data-href="FARM_FIELD_SCOUTING_REPORT_list.php?orderby=aSOIL_MOIST_0_1" class="rnr-orderlink"> Soil Moisture 0 to 1 FT </span> </th>
var ctrlorder_SOIL_MOIST_0_1_1 = Runner.getControl(pageid, 'order_SOIL_MOIST_0_1_1');
|
![]() |
Sergey Kornilov admin 4/22/2015 |
wpl is correct, do not use some IDs, use real field names. |
M
|
mfriend author 4/22/2015 |
Thank you for your help WPL and Sergey: <div data-fieldname="SOIL_MOIST_1_2" class="rnr-field style1 ">
|