Buy Now
Sign in

HOW TO ADD data received in 2 dropdown box , and get the total value in a text box

bhim.pandey , January 08 at 09:55
Answered
B
bhim.pandey
I want to add two cost values, which i got in two different dropdown box, and i want to add it to make total cost in to a text box.

for details i have attached figure of the
GreyHead
Hi Bhim,

You can do this with JavaScript triggered by changes of the drop-downs.

Bob

PS There is no attachment
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
B
bhim.pandey
Dear Friend,
I really am very happy with your prompt reply.
Kindly help me a little more please.

kindly share the code if possible,
a little example if possible please.

how to do it in javascript.

How to get the data from cost1 field and use it in javascript. kindly check the field names in the picture cccc.jpg
Attachments
ccc.jpg
ccc.jpg
(94.84 KiB)
151 Downloads/Views
cccc.jpg
cccc.jpg
(188.69 KiB)
159 Downloads/Views
B
bhim.pandey
Dear Mr. Bob,

Please help with any example if possible for the above query.

How to get data from the cost1 and cost2 field to java and ADD and then take view of the data in textbox as total cost.

Thanks and Regards
Bhim Pandey
admin
Hi Bhim,
Please check this:
https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5314-creating-a-calculation-form-in-chronoforms6
Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!