I'm trying to trigger an onchange event (the one in the field properties, events).
On change for the lookup works for another field I'm changing (it switches between two options of an option set based on it's result).
The same onchange event also works for other fields
Thank you but as stated the code is not the issue as it is working perfectly when triggered by a different field.
The onchange is exactly the same for the lookup as it is for the textfield which is working as expected.
What i need to know is why would the onchange not be working for the lookup when it is working for the textfield.
I'm still not back at my work machine, so cannot share anything yet, and once again the code is not the issue it's the triggering of the onchange.
Hi partner,
I suggest that you could use F12 to debug your code step by step to find out the reason.
If you mean the same function could work in other fields' onchange event but not work in the lookup field, you need to make sure if the code has been trigged when you update the field.
And if you mean you want to change your lookup filed value when changing an option set field, you need to catach the correct field name of lookup field, not dispaly name.
BTW, could you kindly share your code to us so that we could help you better?
Hope it helps.
Best Regards,
Leo
I'll post the code when I get back to it.
But I'm not sure how it would be failing if it was working when it is triggered perfectly elsewhere (from an onchange to a text field)
Hi Lee-Martin,
Can you post your logic and a screenshot of your OnChange event? It is possible that you have made a typo somewhere. The next step is to debug your logic.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156