How to disable a trigger?

Hello,

When a value is changed in the “for quantity” field, it calculates the necessary quantities of each product in the items table, but we need to stop or disable this event when the “disabled auto calculation” custom field is active.

Add eval:doc.disable_auto_creation == “0” in ‘Display Depends On’ field