JackGoa
Member
Hi, I'm busy with a solar website. I want to do a very basic calculation and display what a user would pay back monthly and what their savings will be based on two fields.
One would be their monthly electricity bill, and the other field would be radio buttons with 5 or 6 different packages to choose from, but then I discovered the slider control element!
So, user puts in his monthly bill, selects the package he wants, and a couple of fields in the table right below it updates the values. The maths isn't complicated, but I'm just wondering if it's possible to do this at all?
The screenshot attached shows what the table should look like. The big question probably is, can I display an HTML table below a form and update certain values based on user input using AJAX? And where would I start?
*edit: another way I could do it is, instead of AJAX, hit calculate and redirect to an article with placeholders? I would need arrays for that though, right? How do you return an array of results from a fabrik calc element?
One would be their monthly electricity bill, and the other field would be radio buttons with 5 or 6 different packages to choose from, but then I discovered the slider control element!
So, user puts in his monthly bill, selects the package he wants, and a couple of fields in the table right below it updates the values. The maths isn't complicated, but I'm just wondering if it's possible to do this at all?
The screenshot attached shows what the table should look like. The big question probably is, can I display an HTML table below a form and update certain values based on user input using AJAX? And where would I start?
*edit: another way I could do it is, instead of AJAX, hit calculate and redirect to an article with placeholders? I would need arrays for that though, right? How do you return an array of results from a fabrik calc element?