processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

'Show this field only if' limited to just 3 OR options

Open russfussuk opened this issue 10 months ago • 2 comments

When using the 'Show this field only if' field. There seems to be a limit of 3 'OR' options before this feature breaks.

For example, this works fine: pagefield_ref_id=1001|1002|1003

But this breaks the feature entirely and the field is displayed at all times: pagefield_ref_id=1001|1002|1003|1004

Setup/Environment

  • ProcessWire version: 3.0.247

russfussuk avatar Feb 20 '25 21:02 russfussuk

@russfussuk I can't duplicate it here, testing a page reference field with 4 IDs. Are you sure that your page reference field doesn't have any of those IDs selected? (1001, 1001, 1003, 1004)? If so, what is the input type (Inputfield) used by the Page field? And what is the input type used by your conditional (showIf) field? In my case, the Page field is an InputfieldPageAutocomplete, and the conditional field is an an Options field using InputfieldCheckboxes.

ryancramerdesign avatar Apr 03 '25 15:04 ryancramerdesign

I'm using a repeater as a simplified way to build blocks of content of page.

Inside this repeater I have a page reference field (select, single page) named 'block_type' and a selection of other fields such as a TinyMCE, images, files etc.

Each of these other fields uses 'show if' block_type.id=xxxx|xxxx|xxxx This works until 4 or more page IDs are used.

russfussuk avatar Apr 14 '25 21:04 russfussuk