Hi Everyone
I have some javascript on my gravity form which generates a value for 'kmdistance'
It inserts this value into a gravity form input field called input_1_19 using this code.
document.getElementById('input_1_19').value = kmdistance;
This works. However, I now want to add pricing calculation to my form, and a product field type 'calculation' with a simple multiplication field does not work automatically - not unless I manually enter something into the distance field.
{Distance:19} * 2
It seems that once the value is inserted into the form field via javascript, I need to tell gravity forms to re-check the calculation. Does anyone know how to do this ?
Regards Steven