Hello!
I’m creating a form in which the user has 3 select fields. One for “customer”, one for “contact” and one for “person”. I want the “customer” and “contact” flield to refresh the “person” field. My problem is that the form only refreshes the “person” field when the user has selected something in the “customer” and “contact” field. I want the form to refresh the “person” field when the user selects only “customer” or “contact”. I tried with this SELECT (on “person” field):
SELECT id_numero, name, id_customer, id_contact
FROM person
WHERE id_customer = ‘{id_customer}’ OR id_contact = ‘{id_contact}’
ORDER BY name
The problem is that only when the form can execute all the SELECT sentence (it is, when it has a value for ‘id_customer’ and a value for ‘id_contact’ it refreshes the person field. I want the form to refresh the person field when the user selects just ‘id_customer’ or ‘id_contact’ alone.
Any tips?