Hi,
I have a lookup field which is duplicated on a form and placed on 5 different tabs. At a time only one tab is visible based on value of a lookup field selected in Summary Tab. I have applied a filter on this duplicated lookup field based on the lookup field in Summary Tab. However this filter is only visible in the very 1st Tab. Is it possible to have common events and filters for a duplicated fields across all the tabs without explicity adding them on each tab?
I need to know this because i have another dupliacte lookup field which needs to be filtered based on the duplicate lookup field I mentioned above
Thanks.
Hi,
Not sure if I understood correctly. You have the same field across multiple tabs but when you do some via java script, it only changes the first one and not all. correct?
You can try (for example to disabled them) with:
var c = Xrm.Page.getAttribute('name').controls //this will get all the fields with the name "name"
you can then iterate through c.
Or you can do
Xrm.Page.getAttribute('name').controls.get(0).setDisabled(true)
Xrm.Page.getAttribute('name').controls.get(1).setDisabled(true)
.
.
.
Xrm.Page.getAttribute('name').controls.get(n).setDisabled(true)
Regards,
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... 290,902 Super User 2024 Season 2
Martin Dráb 229,297 Most Valuable Professional
nmaenpaa 101,156