• 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: calculation of fields before submitting!?

calculation of fields before submitting!? 15 years 9 months ago #7940

hello, i use a form with field1, field2 and field3. The user fills field1 and field2. When he leaves field2, automatically field3 is calculated as field1 * field2. Where do i have to use a script?
The administrator has disabled public write access.

Re:calculation of fields before submitting!? 14 years 9 months ago #10844

  • komita
  • komita's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Thank you received: 1
I would like the answer to this also. Thanks.
The administrator has disabled public write access.

Re:calculation of fields before submitting!? 14 years 9 months ago #10863

  • 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:calculation of fields before submitting!? 14 years 9 months ago #10864

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

The calculation uses the same basic principle posted on the following article:

http://www.rsjoomla.com/customer-support/documentations/34-custom-scripting/89-simple-calculation-with-rsformpro.html

Instead of triggering the function on the submit button you can simply add the trigger to a normal plain button or using the "onkeyup" trigger.

Some examples are available here:

http://www.joomla-form.com/form-examples/form-scripts/12-calculation-examples
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.
  • 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!