How to insert a value from an unsaved model into a contains condition and not query the whole databa

Hi Anna! Thanks for getting in touch! I’m really stuck on this and it’s holding me up.

Unfortunately I can’t use the ‘Field from Another Model’ condition as the field in question is not saved to the database. Hopefully this will explain it a little better:

The second model retrieves the whole database because of the CONTAINS rule (which I need to use). I need a way of saying that if the unsaved field in the first model is blank, then don’t use the condition on the second model. The field on the first model, however, isn’t saved - so I need to see if the field in the UI is blank, rather then the committed record in Salesforce.

Sorry, I’m not feeling terribly eloquent at the moment - I’m not explaining this very well!