• Resolved thankssforhelp

    (@thankssforhelp)


    Hi there,

    I hope you are doing well!

    I am using the following code for IBAN validation in my mu-plugins:

    https://gist.github.com/wpmudev-sls/8ca771c9cde2f583b20280b23291e9cc

    1. However, I would like to limit the allowed IBAN-numbers to German IBAN-numbers only and show an error message as soons as an IBAN of another country is entered. Is there any way I could do this?
    2. Further, currently the “Please enter a valid IBAN-number” only appears after submission – is it possible (like in the e-mail field) that there occurs an instant error message?

    Thank you very much in advance and kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @thankssforhelp ,

    However, I would like to limit the allowed IBAN-numbers to German IBAN-numbers only and show an error message as soons as an IBAN of another country is entered. Is there any way I could do this?

    You could remove all other countries from $Countries array, so only the one you want will be validated.

    Further, currently the “Please enter a valid IBAN-number” only appears after submission – is it possible (like in the e-mail field) that there occurs an instant error message?

    I’m afraid that there is no option for that.

    kind regards,
    Kasia

    Thread Starter thankssforhelp

    (@thankssforhelp)

    Hi Kasia @wpmudev-support2,

    thank you, this worked – somehow it didn’t work earlier, when I tested it.

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit IBAN validation to one country’ is closed to new replies.