• 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: Simple order form calculation

Simple order form calculation 14 years 6 months ago #8806

I'm new to RSJoomla and I need a simple order form that will automatically calculate a price when the quantity is chosen in a dropdown.

I can make this work using a hidden field and then reporting the value in the Thank You message but I want the price to show on the order form BEFORE clicking the submit button.

Any help would be much appreciated! This must have been done zillions of times before, but I just don't know how.
The administrator has disabled public write access.

Re:Simple order form calculation 14 years 4 months ago #9086

  • laverbe
  • laverbe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
I'm looking for the same kind of form function... did you already found a goof solution?
The administrator has disabled public write access.

Re:Simple order form calculation 14 years 4 months ago #9108

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

You can refer to this two articles from our documentation where it is explained how you can make calculations using RSForm! Pro:

www.rsjoomla.com/customer-support/docume...-with-rsformpro.html

www.rsjoomla.com/customer-support/docume...up-calculations.html

And instead of using hidden fields, you can try using a text box field in which the total amount is stored.
The administrator has disabled public write access.

Re:Simple order form calculation 13 years 9 months ago #10848

  • komita
  • komita's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Thank you received: 1
I see the idea here but we don't want the total to be hidden because we want it to be populated with the total after you've selected price and quantity, not put into the thank you.
The administrator has disabled public write access.

Re:Simple order form calculation 13 years 9 months ago #10866

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

You can download a RSForm! Pro calculation form example from here:

joomla-form.com/form-examples

You can restore the example and customize it the way you wish.
The administrator has disabled public write access.

Re:Simple order form calculation 13 years 9 months ago #10867

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

Instead of using a hidden field you can simply use a normal text field. A example is illustrated in the example provided by my colleague.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re:Simple order form calculation 13 years 9 months ago #10878

Hi,

I'm new to this and trying to understand as I have one form to implement with calculations.

regarding this example: is it possible to show the total without pressing the calculate buttom? I mean the total field shows automatically when we enter the values in the other fields.

Thank you
The administrator has disabled public write access.

Re:Simple order form calculation 13 years 9 months ago #10895

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 722
  • Thank you received: 59
Hello,

In order to trigger the script that calculates the total when you enter a new value in the field please try using "onkeyup". For example please try adding the following line in the additional attributes of the field:

onkeyup="function_name();"
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Simple order form calculation 6 years 11 months ago #36828

  • pbt39ppc
  • pbt39ppc's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
found that page with google.
joomla-form.com/form-examples is not working.
The administrator has disabled public write access.

Simple order form calculation 6 years 11 months ago #36831

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 559
  • Thank you received: 102
Hello,

This link is no longer valid, you should try this instead:

demo.rsjoomla.com/rsformpro/form-examples.html
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!