- Posts: 112
- Thank you received: 0
Questions about Payment Form extension
Amount field validation
- Matj
- Topic Author
- Offline
- Premium Member
Less
More
1 year 10 months ago #156342
by Matj
Amount field validation was created by Matj
Amount field have setings:
Field Type - text
Datatype Validation - number
Validation Rules - validate[required,custom[number]]
The problem is with decimal point. If I enter , (comma) I get Invalid floating decimal number error. It is ok with dot.
Ideal would be if I enter comma OR dot.
In configuration I have set Decimal Point - , (comma) and Thousands Separator dot. As EU standard.
Field Type - text
Datatype Validation - number
Validation Rules - validate[required,custom[number]]
The problem is with decimal point. If I enter , (comma) I get Invalid floating decimal number error. It is ok with dot.
Ideal would be if I enter comma OR dot.
In configuration I have set Decimal Point - , (comma) and Thousands Separator dot. As EU standard.
Please Log in or Create an account to join the conversation.
- Matj
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 112
- Thank you received: 0
1 year 10 months ago #156344
by Matj
Replied by Matj on topic Amount field validation
I think that field type number solved the problem.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 10 months ago #156351
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Amount field validation
Yes. For entering amount, basically a number, better use Number field type
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Matj
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 112
- Thank you received: 0
1 year 10 months ago #156400
by Matj
Replied by Matj on topic Amount field validation
OK, now I have problem with validation.
If I left one of the required field empty and click process peyment, cursor and fokus is on amount field not the missing field.
If I enter ONLY amount and click process, no validation error is visible on any field...only cursor and fokus is back to amount field.
You can try on link
If I left one of the required field empty and click process peyment, cursor and fokus is on amount field not the missing field.
If I enter ONLY amount and click process, no validation error is visible on any field...only cursor and fokus is back to amount field.
You can try on link
This message contains confidential information
Please Log in or Create an account to join the conversation.
- Matj
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 112
- Thank you received: 0
1 year 10 months ago - 1 year 10 months ago #156401
by Matj
Replied by Matj on topic Amount field validation
Ok, again it seems that with Datatype Validation integer number is working.
Last edit: 1 year 10 months ago by Matj.
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.