• Resolved mikechacra

    (@mikechacra)


    Hello,

    If i set the field as required, cf7 will still see this as an empty field even if a number is there. Anyone facing this weird issue ?

    Thanks !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yordan Soares

    (@yordansoares)

    Hello @mikechacra,

    To make a field mandatory, you need to add an asterisk to the name of the field type. Please make sure you are adding the asterisk right after the form field type (without space) and not in the form label name, like this:

    [intl_tel* your-phone]

    This is an example of a form I use to test each new release:

    Custom Form using International Telephone Input for Contact Form 7

    And this is the form rendered in frontend. In this screenshot I try with all possible cases of attempted sending:
    1. Trying to send without filling the two required fields.
    2. Trying to send by filling one of the required fields.
    3. Trying to send by filling the two mandatory fields.

    Form rendered in frontend

    I hope this is helpful to you.

    Best regards,
    Yordan.

    Hello @yordansoares

    It seems I have similar issue on my website. Please see video below:

    https://streamable.com/glorjy

    There’s always “The field is required” error even if it’s populated. Also there’s no validation (you can type letters).

    The code in form editor is:
    [intl_tel* intl_tel-899 initialCountry:se]

    Note that there’s error in browser console:
    Uncaught TypeError: a.ajax is not a function
    see here

    Thank you in advance for your help
    Robert

    Hi,
    I am using the below code for the field required
    [intl_tel* your-phone]
    but it doesn’t work with a separate Dial Code option

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Required field not working’ is closed to new replies.