supported field types are listed here */ public string $fieldKey; /** * @a-type select * @ui 1 * @required 1 * @label Comparison * @instructions Controls how field value will be compared * @choices {"=":"Equal to","!=": "Not Equal to",">":"Bigger than",">=":"Bigger than or Equal to","<":"Less than","<=":"Less than or Equal to","LIKE":"Contains","NOT LIKE":"Does Not Contain","EXISTS":"Exists","NOT EXISTS":"Does Not Exist"} * @default_value = */ public string $comparison; // not required, as it's user should be able to select != '' /** * @label Value * @instructions Value that will be compared.
Can be empty, in case you want to compare with empty string.
Use $post$ to pick up the actual ID or $post$.field-name to pick up field value dynamically * @conditional_logic [[{"field": "local_acf_views_meta-field__comparison","operator": "!=","value": "EXISTS"},{"field": "local_acf_views_meta-field__comparison","operator": "!=","value": "NOT EXISTS"}]] */ public string $value; public function getAcfFieldId(): string { return Field::getAcfFieldIdByKey($this->fieldKey); } }