• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Can RSForms pro do this?

Can RSForms pro do this? 16 years 1 month ago #6863

  • Symbiot
  • Symbiot's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
hi

typical newb. subj. I know, but I've had a hard time finding a component that can..

here's the outline of what I'm looking for..

I want to create a calculator for fertilizers. Now I have all calculations etc. and the design. all I need is a way to create it in joomla.

A form which allows the user to input his or her wanted values, size of container etc etc.
and then get a result based on this input..

Can RSForm support this?
The administrator has disabled public write access.

Re:Can RSForms pro do this? 16 years 1 month ago #6868

  • marioliveira
  • marioliveira's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
Hi. I've just solved what I think is a similar issue with the help of Alexandru Plapana. I'll explain:

I use a form in which a client can book walks and wether he wants picnics or not. So he/she fills in forms in which he/she states how many people will do it concerning adults (field I called 'Pax' ), children (field 'Criancas' ) and how many picnics (field 'QuantPics' ), all fields included in the form, as well as hidden field called 'Total'. Except 'Total', all the other fields are texboxes with their own validation rules of course.

On the submit button addititonal attributes there is the condition:
onclick="calculate();"

In the form layout there is a script which does the calculation, as follows:
<script type="text/javascript">
function calculate()
{
document.getElementById('Total').value = parseInt((document.getElementById('Pax').value)*36) + parseFloat((document.getElementById('Criancas').value)*18.5) + parseInt((document.getElementById('QuantPics').value)*8)
}
</script>


So if you take a look at it, when the user clicks on submit, the field 'Total' gets the result of 'Pax' multiplied by 36, plus the result of 'Criancas' multiplied by 18.5, plus the result of 'QuantPics' multiplied by 8. The reason for the parseFloat on 'Criancas' is because it's not an integer as you see.

And that's it. At the thank you message I place a text invoking among other variables the field 'Total', for example: Please credit our account with (Bank name) for the amount of {Total:value} euros, bla bla.

I think that will help you solving your problem. You just have to follow the example by replacing the fields and calculation values with your own. And of course you can add all the field values you need from the form, on an email tro be sent to the person.

Let me know if it was of any use. All the best
Last Edit: 16 years 1 month ago by marioliveira. Reason: correction again
The administrator has disabled public write access.

Re:Can RSForms pro do this? 15 years 11 months ago #7456

I'm building a new site for a blind manufacturer and retailer and have to build a ton of calculators. This was very helpful. Thanks for posting it.

Matt
The administrator has disabled public write access.

Re:Can RSForms pro do this? 2 years 6 months ago #42300

  • Crispin
  • Crispin's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 75
  • Thank you received: 4
I have been asked to create a 'Quick Quote' solution which I think I can use this for. However, I need to set up a secondary function where the user can opt to download a sample pdf quote, one of a number of pre created documents.

The document linked will be based on the outcome of the Quick Quote. They will enter a name and email address and then on submit they download the relevant pdf.



Any thoughts?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!