Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Suggested answer

Duplicated Fields on Form Tabs

Posted on by 20

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.

  • Suggested answer
    RE: Duplicated Fields on Form Tabs

    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans