Form change event control

Form.getItem(“test”).setValue(“a”); and Form.setValue({}); Is it possible to handle so that the change event hanging on the form does not occur?
I’m wondering how to deal with it if possible.
I want to make the change event happen only when the user directly inputs it, not when setValue().

Not sure if I fully understand your question but whenever I don’t want a change event to occur such as:

component.events.on("Click"... or
component.events.on("CellDblClick"... or
component.getItem("compselect_desc").events.on("keydown" ...

I use:

return false;

Can that work in your use case?

You may create a flag indicating that the value was changed by the API, so the event will differ these actions.
Like:
https://snippet.dhtmlx.com/5hps57d7