Clear field if other is set

Hy,
I need to clear a select field if another select field is used and reversed.

So I have two select field one Sales Invoices, one Purchase Invoices. I am using frappe.db.get_value to get some data from the invoices I am processing.

But: I need to clear out the other Invoice field. This results, that is goes into a loop, because of triggering changes of the field.

=> any ideas how to solve this?

br
Andreas

Hi @Andreas_Thuer,

If you are making those invoice fields blank then use condition for execution of code

E.g.

image

In above scenario code will be executed only if that fields have some data

1 Like