web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Language setting for user
Power Pages
Answered

Language setting for user

(1) ShareShare
ReportReport
Posted on by 312

Hello community, I am working with a portal in power apps. 

 

In the part of the user's profile I would like to put "Spanish" as the preferred language. In other words, once the user accesses his profile, he automatically sees the Spanish language.

MartinVargas_0-1647274815363.png

 

 

 

Can someone help me here? 

I would appreciate it guys

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi @MartinVargas ,

    You use this jquery code to set language value onload 

    $("attribute_name").attr("value","Name");
    $("arrtibute_id").attr("value","attribute_GUID");
    $("#attribute_entityname").attr("value","entity_name");

     

    here is a ref of how to extract values 

    Arpit's Dynamics 365 Blog: ADXStudio - Set values in Lookup fields of Entity Forms (arpitmscrmhunt.blogspot.com)

     

    add it to Profile Web Page- Content Page > Advanced >Custom JS

    Manar_0-1647285126343.png

     

  • MartinVargas Profile Picture
    312 on at

    Hi @Anonymous , thank you very much.

     

    Testing the following script it shows me this text by default. The problem is that it is not saving it to me.

     

    This is the inspection of the preferred language field:

    MartinVargas_0-1647318663559.png

     

    And this is the script:

    MartinVargas_1-1647318672266.png

     

     

    Could you tell me what is my mistake?

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Hi @MartinVargas ,

    Try this (replace PutSpanishGuidHere  with actual Spanish language guid)

    $("#adx_preferredlanguageid _name").attr("value", " adx_preferredlanguageid _label");
     $("#adx_preferredlanguageid").attr("value", " PutSpanishGuidHere ");
     $("# adx_preferredlanguageid_entityname").attr("value", "adx_portallanguage");
    
  • MartinVargas Profile Picture
    312 on at

    Hi @Anonymous.

     

    Thank you very much. It works perfectly. However when converting the preferred language field to "read only". It doesn't insert it.

    MartinVargas_0-1647369776215.png

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @MartinVargas ,

    it won't work unless the field is visible and unlocked (that's how this script works, unfortunately )

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 89 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard