Questions about Payment Form extension

Amount field validation

  • Matj
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 7 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. 
 
  • Please Log in or Create an account to join the conversation.

    • Matj
    • Topic Author
    • Offline
    • Premium Member
    • Premium Member
    More
    1 year 7 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.

    More
    1 year 7 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

    Please Log in or Create an account to join the conversation.

    • Matj
    • Topic Author
    • Offline
    • Premium Member
    • Premium Member
    More
    1 year 7 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
    This message contains confidential information
    Attachments:

    Please Log in or Create an account to join the conversation.

    • Matj
    • Topic Author
    • Offline
    • Premium Member
    • Premium Member
    More
    1 year 7 months ago - 1 year 7 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 7 months ago by Matj.

    Please Log in or Create an account to join the conversation.

    Moderators: Tuan Pham Ngoc