How to use Custom RegEx

Home Forums Jquery Validation for Contact Form 7 How to use Custom RegEx

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #497765 Reply
    senthilkumar
    Guest

    Could you please provide one example for the below contact form7 field to accept any numbers, letters, spaces and special characters

    [textarea* textarea-1 placeholder “Your Message*”]

    #497808 Reply
    Dinesh
    Keymaster

    Hi,

    When you are trying to accept numbers, letters, spaces and special. It means that you are allowing any inputs. So its required validation here.

    Just mark it as required when creating the fields from contact form 7.

    In this [textarea* textarea-1 placeholder “Your Message*”], there is * after textarea which means required validation will be used.

    Thanks

    #497812 Reply
    senthilkumar
    Guest

    Dinesh,
    Please explain me How to use below option in the above textarea field
    Custom RegEx: Validates any rules using custom javascript RegEx.
    Use dynamic class RegEx-XXX.

    #497937 Reply
    Dinesh
    Keymaster

    If you need custom validation rules that are not provided with our plugin, then you can create your own validation rules using Custom RegEx validation. However, you should have some knowledge of RegEx. Or you can contact us if you need any help.

    Please goto Custom RegEx Validation

    From there click on Add Custom RegEx button at the top right side.

    Using the form, give reference name, add regEx and invalid message.

    Click On Save. Once saved you will get the listing.

    From the listing, you will get the Class Name. Please place the class name in your field

    That’s all. You are done.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to use Custom RegEx
Your information: