• Resolved centauriprime

    (@centauriprime)


    I am trying to add 2 fields to a particular product. One for name and one for a telephone number. The name seems to work as a text field but I am struggling to find a way to format the phone field correctly in the free version of flexible custom fields.
    Is there way to do this with a mask or regex? Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @centauriprime

    The Phone field available in the free version has regex validation in the settings. Please add such a field and go to the Advanced tab of that field. Enter the regex code in the Validation regex input.
    There are two code examples in our documentation.
    In the Appearance tab there is an input named Placeholder that can be used to enter a hint for the client what format is correct.

    Thread Starter centauriprime

    (@centauriprime)

    Thanks Tomasz
    There doesn’t seem to be a phone field in the free version just a number field. I can’t see anywhere to add regex

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    In the screenshot I marked where the Phone field is.
    Plugin settings

    Thread Starter centauriprime

    (@centauriprime)

    Hi Tomasz. There doesn’t seem to be a phone field in the free version I am running. I see text, number etc but phone isn’t there.

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    The Phone field is available since version 3.2.0 released on 2022-02-08. Please update the plugin if the field is not available.

    Thread Starter centauriprime

    (@centauriprime)

    Hi Tomasz. I am on version 2.3.4 and the phone field is not there. Can you please check again for me?

    Thread Starter centauriprime

    (@centauriprime)

    i need it to actually work with flexible product fields

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    I am sorry but Flexible Product Fields does not have a Phone field or regex validation feature. So there is no option for the text field to be validated as a phone.
    Please use the field placeholder or tooltip to tell users what the correct number format is.

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    I am marking this topic as resolved as we have not received any new replies.
    Please let us know if you need our help again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Adding a telephone number field’ is closed to new replies.