Skip to content

New conditionals with only two parameters.Β #62

@christianmagill

Description

@christianmagill

@stevep,

ACF 5.7 brings with it new field conditionals that only have two parameters.

Unfortunately, ACF Builder doesn't allow conditions with two parameters.

I've tried passing null but while it successfully builds, it stops the validation from working properly in certain scenarios.

Unfortunately this is causing a breaking issue for me.

The two conditionals in question are "==empty" and "!=empty".

Here's an example of how the fields output through the generate PHP option in ACF.

'conditional_logic' => array(
				array(
					array(
						'field' => 'field_5b1305029be7d',
						'operator' => '>',
						'value' => '6.4999999',
					),
					array(
						'field' => 'field_5b1305029be7d',
						'operator' => '<',
						'value' => '8.5000000',
					),
					array(
						'field' => 'field_5b1305029be7d',
						'operator' => '!=empty',
					),
				),
			),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions