Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add onChange event for a field #309

Closed
Helkyd opened this issue Jan 17, 2022 · 1 comment
Closed

How to add onChange event for a field #309

Helkyd opened this issue Jan 17, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Helkyd
Copy link

Helkyd commented Jan 17, 2022

Hi,
Not a bug but a doubt after searching long time...
How to have a onChange event for a field like Selection (a,b,c) when ever user selects different value and specially if on a Quickeditform or TwocolumnForm ?

Example on Transaction.js we have Make Payment and openQuickEdit.. need to check when paymentmethod changed values from CASH to BANK

Thanks in advance.

@18alantom
Copy link
Member

As of now, there is no functionality to fire field level onChange handlers. In place of this, there is a formulaDependsOn functionality.

Most probably won't be adding such an event on a field so as to prevent unnecessary side effects. (The dynamic nature of things already poses a problem in a few areas, this wouldn't help).

If you want to add something of the sort you can alter these functions to trigger the onChange handlers:

@18alantom 18alantom added the question Further information is requested label Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants