Forums

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

bhim.pandey 08 Jan, 2018
Answer
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 08 Jan, 2018
1 Likes
Hi Bhim,

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

Bob

PS There is no attachment
bhim.pandey 08 Jan, 2018
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
bhim.pandey 08 Jan, 2018
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
Max_admin 11 Feb, 2018
Hi Bhim,

Please check this:
https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5314-creating-a-calculation-form-in-chronoforms6

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.