I am using the QField object and the "select" or "selectValues" methods, but this does not clear other selections outside of the passed array, and if I call the clear() method first, I will re-trigger the the event loop.
How can I tell the field to select only the values I pass in to the method, or to clear, and then select, in a single event?
Re: How to clear other selections with the Field API?
I did have toggle set to "true". However, I am getting a "Function not allowed on this object in app modal mode" error when I try to call selectValues(['MyValue'])? Any ideas how to resolve this?
Update: I think this is because the field selection box is open, but I don't see any events other than OnData that I can attach to, and I don't see any way to determine if the "object is in app modal mode" or not inside of the method.