Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Portals - ViewConfiguration: How to change FilterByUserOptionLabel?

Posted on by 412

Hello everyone,

I am working on a Portal in German language and I need to change a label value which comes by default in English. 

Here.PNG

I want to change the filter label from My to Meine Daten.

As explained HERE this is a default value of ViewConfiguration, FilterByUserOptionLabel property.

I am trying to replace the content by modifying the theme.css ,there is a class "filter-user" but the changes are not applied.

Anyone knows how to do this change?

Many thanks in advance!

Regards,

Irena.

*This post is locked for comments

  • Irena Benja Profile Picture
    Irena Benja 412 on at
    RE: Portals - ViewConfiguration: How to change FilterByUserOptionLabel?

    Hello Arpit,

    Your code works, thanks a lot!

    NOTE: Adding the script to the normal Custom Script window inside the Web Page it didn't work for me, I am using a custom template on this Page therefor to have the wanted result I added the code after my template logic and before the {% endblock %}

    8446.script.PNG

  • Verified answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Portals - ViewConfiguration: How to change FilterByUserOptionLabel?

    Hi Irena,

    Unfortunately this is not possible without using javascript:

    Here is the code that you can use under Custom Javascript (Webpage/EntityForm) in order to change the filter label.

    $(".entity-grid.entitylist").on("loaded", function () {

    $('.filter-user').text('Meine Daten');

    $('span:contains(" My")').text('Meine Daten');

    });

    If my answer helped to resolve your issue, kindly verify it by clicking 'Yes'. It would be helpful to the other community members seeking to resolve a similar issue.


    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans