1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Divi Contact Form - make 1 of 2 fields required

Discussion in 'Free Divi Community Forum' started by BespokeD, Oct 30, 2019.

  1. BespokeD

    BespokeD New Member

    Hi

    Is it possible to make 1 of 2 fields 'required' within the Divi Contact Form Module, so either field A or field B?

    I.E. - in the form I have 'telephone' and 'mobile' as fields, I'd like at least one of these fields to be filled in, but not necessarily both, and I'm not particular about which they use.

    Is this achievable?

    Many thanks
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Digital Marketing' Divi layout for all Pro members:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Don't think you can do that.

    But here's a workaround:

    1. Create a radio button field for the user to choose 'telephone' or 'mobile'.
    2. Then create 'telephone' and 'mobile' field.
    3. Set both to be required.
    4. Set conditional logic to show only when it's being selected in the radio button.
     
  3. BespokeD

    BespokeD New Member

    Many thanks for your help.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More