harvs1789uk

Those results are as I would expect, gets my vote

sminnee

@unclecheese and everyone else: regarding the ambiguity - we could just define what the result will be and clearly document it. I'd probably go with filter ID => [] returns and empty list and filter ID:not => [] does nothing.

leomeloxp

@kinglozzer That's correct and class="message warning" for a warning/yellow box

kinglozzer
  1. <div class=”message bad”>Hello</div>

iirc

leomeloxp

If that doesn't work I might just go with a literal field with bootstrap classes for an alert/warning

leomeloxp

I tried it from FieldList::getForm() but that doesn't exist, I'll try from a given field in a bit

kinglozzer

Not sure, the form might not be set at that point

kinglozzer

$field->getForm()->sessionMessage() maybe leomeloxp ?

leomeloxp

Any suggestions on how I could set a form->sessionMessage() from getCMSFIelds of a DataObject? Basically I wanna do a few checks when getCMSFields is called and display a warning/error styled message to the user