Aleš Sýkora wrote

Translate Phone number error message in Fluent Forms

15. 4. 2021 in

If you want to translate the error message, when user fill in wrong phone number in fluent forms, you can use this custom snippet:

function changeErrTxt($element){
    $element['settings']['validation_rules']['valid_phone_number'] = [
        'value'   => false,
        'message' => __('Phone number is not valid', 'fluentformpro')
    return $element;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Translate labels in Iconic Delivery Slots
21. 1. 2021 in
If you need to change labels of fields added by Iconic Delivery Slots to WooCommerce checkout, use this snippet:
Read More
Aleš Sýkora wrote
How to use Infinite Scroll in Repeater element of Oxygen Builder
If you want to use the “Load more” button when using repeater, you can do that with .JS library called “Infinite Scroll“. Load Infinite Scroll script from CDN (I am using Advanced Scripts again). For a speed purposes – use conditions to make it load only on pages where you need to use it. Current […]
Read More
Aleš Sýkora wrote
Featured products query WooCommerce
11. 4. 2021 in
If you are using your own queries for WooCommerce stores, for example in Oxygen builder’s custom code block then you may need query for featured products. You can use the query I am using inside my product sliders :-).
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram