• 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: Clicking on a check box auto populates an amount

Clicking on a check box auto populates an amount 11 years 4 months ago #25935

I'm stuck and need this ASAP.

I have a form where I have 2 options that are yes and no, if I click on yes, I need one price to auto populate, if I click on No for the other option, the other price option populates. I can't figure out how to get this to work, and can't seem to find any coding that will do it. I know there should be a way to set it so it has a simple if then type of logic. I'm just not that strong a PHP coder.

Any help would be immensely appreciate as I have a few forms that will need this kind of coding and have till Thursday to get them completed.
The administrator has disabled public write access.

Clicking on a check box auto populates an amount 11 years 4 months ago #25943

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
You can easily achieve this using RSForm!Pro's Calculations feature:

1) Edit your select field (checkbox / radio group or dropdown) and add the following items:

Yes[pvalue1]
No[pvalue2]

Make sure to replace value1 and value2 with the actual values that you need, as follows:

Yes[p10]
No[p20]

The form will add either 10 or 20 to the calculation, depending on your selection in the frontend.

2) Head to Components >> RSForm!Pro >> Manage Forms >> edit your form >> Properties >> Calculations and create your calculation as described in the following article:

www.rsjoomla.com/support/documentation/v...rm-calculations.html

You can also have a look at the following episode in our TV section for more information on how to set this up:

www.rsjoomla.com/video-tutorials-on-joom...lations-feature.html
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!