Remember me

Branch based on value of calculated field

6 years 4 months ago #1

  • Rob's Avatar
  • Rob
  • Posts: 12
My client would like a branch on the form so if the customer enters a value over 200 then the payment option would be disabled and change to a normal submit button.

The reason is that my client is selling gift vouchers for her training courses and wants any value up to 200 to be processed by this forms payment system. Any value over 200 she want to be notified so she can process this manually.

Is this possible?

6 years 4 months ago #2

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Hello,

Please clarify which payment system you need this custom.

Regards,
Vyacheslav, Balbooa.com

6 years 4 months ago #3

  • Rob's Avatar
  • Rob
  • Posts: 12
We use Strip which looks like it is already supported.
So the payment options are Stripe or Cash.
When cash is selected it simply emails the form to the owner.
When Stripe is selected it processes the payment.

6 years 4 months ago #4

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
We did it for you.
You need to download and replace the file ba-form.js(/components/com_baforms/assets/js/ba-form.js)
drive.google.com/open?id=1vEXGzpcNW2eMNOv49oeDACanQdvBJrY7
After the replacement, clear the cache and check.

After updating, the changes will be lost

Regards,
Vyacheslav, Balbooa.com

6 years 4 months ago #5

  • Rob's Avatar
  • Rob
  • Posts: 12
Not working as expected.

The form is just emailing the client and not asking for payment if below a certain amount.

This has also broken the other form we use the newsletter signup at the bottom. As it no longer gives a pop-up to say message sent, instead it takes us to a blank page.

6 years 4 months ago #6

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Send us a link to page with a problem

Regards,
Vyacheslav, Balbooa.com

6 years 4 months ago #7

  • Rob's Avatar
  • Rob
  • Posts: 12
OK. The following link
turbo51.servers.prgn.misp.co.uk/~inspire...okings/gift-vouchers

We have replaced the ba-form.js file with the one you provided and now the forms arn't working properly.

We have 2 of your forms on it. 1 is the Gift Voucher Purchase and the other is the Newsletter Signup.

If you enter your email address on the newsletter signup we used to get a pop-up saying "your message has been sent". Now it goes to a blank page*.

Also the Gift Voucher TOTAL calculation is no longer working and that also takes you to a blank page*.

*The page is set to display the payment options on any page which is why this appears.

Any help much appreaciated.

6 years 4 months ago #8

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Hello,
Here is a link to the file:
drive.google.com/open?id=14_Q89bEt2Y6hNAtf2R4FQHBucAlB7RQB
You need to download the file and not copy the text from the fact that you copied you had a white screen.

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum