Viewing 7 replies - 1 through 7 (of 7 total)
  • Sona

    (@support-web-dorado)

    @shbaki,

    The regular expression is only applicable for Simple Text type field. What you might give a try will be using Additional Attributes depending on what you want to achieve here.

    Thread Starter shbaki

    (@shbaki)

    I want the Text Area at least contains three words. How can I do this with Additional Attributes?

    Sona

    (@support-web-dorado)

    @shbaki,

    Please add a textarea, give it a class name my_custom_validation
    and in form options> javascript> before_submit function add the following:
    jQuery(“.my_custom_validation”).each(function () {
    var data = jQuery(this).find(“textarea:first”).val();
    var words = data.split(‘ ‘);
    if (words.length < 3) {
    alert(“Fill in at least 3 words.”);
    return true;
    }
    return false;
    });

    where you can customize the alert to your desired text.

    Thanks.

    Thread Starter shbaki

    (@shbaki)

    Thanks for you response.
    I did what you said and it shows the alert when the user enters less than three words.
    Just one problem: When I click on the ‘OK” button of alert message, it will go to the next page. But I want to stay in the same page until the user entered the proper input.

    Sona

    (@support-web-dorado)

    @shbaki,

    Please make the field required and in page break tick “Check Required fields” option so that without filling it out the user will not be able to proceed.

    Thread Starter shbaki

    (@shbaki)

    Thanks

    I have two validation questions:

    1) Can I validate based on a list of acceptable responses? i would like to set certain zip codes as being acceptable (ie, 02111, 02134, and 02135) and would like an error message (“outside of our service area”) if something different is entered.

    2) Can I validate based on a range, as in an entry must be larger than 50?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Validation on Text Area in Form Maker’ is closed to new replies.