1. webcase
  2. RO Payments
  3. Tuesday, 19 October 2021
  4.  Subscribe via email
Hi!

I am implementing RO Payments in RSForm! Pro.

We want the Input box to use the build in Number method to validate the input. The minimum amount (number) is set to 5. The step is set to 1.
This way I expect the field to only accept the value 5 or higher (6, 7, 8 et cetera).

But when testing I can enter any number I want, even lower then 5 and decimals.
So it looks like the validation does not work.

See my settings in the attachment.

What am I missing?
Attachments (1)
References
  1. https://sharedcemeteries.net/en/?option=com_rsform&view=rsform&formId=4
Accepted Answer
Accepted Answer Pending Moderation
Hello Maurice,

As promised I would provide you with a fix and it is here. Attached you will find an updated package of RSForm Pro addon for RO Payments, you can install that on top of the existing plugin and you can then check if the validation works as expected.
Attachments (1)
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # Permalink
Accepted Answer Pending Moderation
Hello,

There is nothing you are missing here. The validation is done by the browser because these min/max/step settings are part of the number field. This is how it looks like in HTML code:

<input type="number" size="5" name="rsfp_jdideal_inputbox[]" id="jdideal-inputbox-59" value="5" min="5" max="" step="1" data-ropayments="2OoS2yEn">
So I created the same field as you have in my test form and the browser validates this as invalid if I enter a value lower than 5, it will not submit the form. For some reason there is something on your site causing the browser not to validate the field. As a result a number lower than 5 can be submitted. If you are interested, you can read more about this at https://www.html5rocks.com/en/tutorials/forms/html5forms/#toc-validation
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 1
Accepted Answer Pending Moderation
Ok thank you, Your explanation makes sense.

I will investigate this further.

Kind regards,
Maurice
  1. more than a month ago
  2. RO Payments
  3. # 2
Accepted Answer Pending Moderation
Hello Maurice,

What you can try is to look at the W3 Schools page, click the Try it yourself button and see if validation works for you. Perhaps it may give you some insights.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 3
Accepted Answer Pending Moderation
Thanks Roland,

Yes I did check this first and by default browser validation works on my end.
  1. more than a month ago
  2. RO Payments
  3. # 4
Accepted Answer Pending Moderation
Hi Roland,

What I have done next is, I temporarely applied the Protostar template to this page with the form. With this default template the validation does not work either.

I don't believe there are very 'exotic' extensions active on the page that could cause the issue.

Do you have any other directions to look in?

Thanks,
Maurice
  1. more than a month ago
  2. RO Payments
  3. # 5
Accepted Answer Pending Moderation
Hello Maurice,

This is an issue I have never seen before so I have no prior experience. What I am thinking is, does this happen on other sites as well? Perhaps move the form to another site and test if it works there?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 6
Accepted Answer Pending Moderation
Hi Roland,

I installed RO Payments, the RSForm plugin, and a backup of the form on another site. I see the same issue.

Maurice
  1. more than a month ago
  2. RO Payments
  3. # 7
Accepted Answer Pending Moderation
Hello Maurice,

Can you post a backup of your form? I will see what it does on my test site.

Do you see the same with the core number field of RSForm? This is the inputbox and you can set the type to number.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 8
Accepted Answer Pending Moderation
Sure! See attachment.

Before implementing RO Payments we were using ccIDEAL in combination with the core number field of RSForm. The validation worked fine then.
Attachments (1)
  1. more than a month ago
  2. RO Payments
  3. # 9
Accepted Answer Pending Moderation
Hello Maurice,

Thank you for sending the form as this has revealed something. The HTML 5 validation kicks in when the AJAX validation is turned off, this is something I did not realize before but it explains why we are seeing different behavior.

So I had a deeper look into the validation system of RSForms and I noticed that our own fields are picked up but not validated by RSForms. I will be checking this further as it is quite complicated but surely I will provide a fix when this is ready, hopefully by tomorrow.

Just wanted to give you an update on this.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 10
Accepted Answer Pending Moderation
Thanks very much Roland. The fix you provided solved the issue!

kind regards,
Maurice
  1. more than a month ago
  2. RO Payments
  3. # 11
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!