Hi - I have two lookup fields Category and Sub category. I want to use javascript on my form on field change event. So if I change a value in Category it should reset subcategory value to blank. Any help please? Thanks
Hi - I have two lookup fields Category and Sub category. I want to use javascript on my form on field change event. So if I change a value in Category it should reset subcategory value to blank. Any help please? Thanks
So it's done now using javascript.
1- create javascript file in web resources
2- call the function on lookup field change event
here's code snippet
//this function reset subCategory value on Category lookup change event
function fuction() {
Xrm.Page.getAttribute("fieldtoresetvalue").setValue(null);
}
Hi Bipin, BR don't work when I click on search icon. It is a lookup field. If I change the value in category field then it works but if I click on search icon in category field then it doesn't work.
Thanks
Hi,
You Can achieve this with the help of Business Rule. Why do you want to write JS code for this?
Regards,
Bipin
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,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156