Support

Account

Home Forums General Issues Can I make a field be required AND conditional?

Solved

Can I make a field be required AND conditional?

  • I have a Button Group field called Registration, with 3 options:
    Required
    None
    Optional

    If the value of Registration is anything but None, I would like to require a value for a URL field called Registration Link, but obviously I don’t want to require a value if registration is None (that is, not required).

    That seems not to work.

    Is there another way to do this?

  • A field that is hidden by conditional logic should not be required even when it is marked as required. ACF does not validate or submit fields that are hidden by conditional logic unless this has been disabled by adding custom JS that removes the “disabled” attribute from the hidden fields.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.