AdvancedCustomFields / AdvancedCustomFields/acf

Required toggle and conditionnal logic

Open
#375 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Hello,

Should be great to add a check and required check box to allow us adding required fields inside a conditional logic.

Use Case

I create a text field which is mandatory only if another field is set.

Actual behaviour

if the field inside a conditional logic unmatched is required and not filled, we can't save the post.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Reproduce the save failure with a required field inside conditional logic, then trace the validation path; done means an unmatched conditional required field can be left empty while the field remains required when its condition matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, content
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.