Buy Now
Sign in

How to multiply field using developer Field Value only

AFROSET , November 28 at 05:58
A
AFROSET
I greatly need your help on how to twist my js code not to use front end input value but only use Field Value from development area for calculation and deliver the usual way on #total
Twist this as an example for me
$("#field1,#field2").on("change", function(){​
​  $("#total").val(parseInt($("#field1").val()) + parseInt($("#field2").val()));​
​});
healyhatman
Sorry but not sure what it is you mean.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
A
AFROSET
sorry my tag is chronoform v6.
I want to use js calculation code but I need it to only use my own input value field value to run the calculation because that field will be disabled for user at front end. ​
healyhatman
So do it then? Use a hidden field. Just DON'T use that front end calculated value in the backend for obvious reasons.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
A
AFROSET
Healyhatman. I didn't understand you. Can you please share more light on this.
I really need help
healyhatman
Use a hidden field and calculate using the value of that
Or
Hard code the value
Or
In the js code block use {var:myvalue} and set that var before the page load
whatever you choose, just don't send that calculated value and use it in your form data because the client could very easily change it before sending. Do your final calculation on the server with a PHP block.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman