Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

DropDowns resetting when change language variable

(2) ShareShare
ReportReport
Posted on by 8
I have a form, with multiple dropdowns,  I have a button to select the language of the application. The form populates from a gallary.
 
varLang is set at app onstart to "en-ca", when you select the button , it changes the varLang to "fr-ca".
 
All my drop downs have items coded with 
If( varLang="en-ca", [items],[french items})
I have the defaults set to ThisItem.datacardname, 
 
When I hit the button to change the language, The dropdowns change, but don't read the sharepoint list they are defaulting to the items and are not saving.
 
What am i missing
Categories:
  • leenie74 Profile Picture
    8 on at
    DropDowns resetting when change language variable
     
     
    My form loads in english, the fields are all populated.  If select the drop down on top to change the language of my application to french, which sets my varLang to french this is what my form looks like.
     
    Drop downs are now blank, the form is in view mode. Combo boxs are however fine.  This only started occurring last week. 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    40,272 Super User 2025 Season 1 on at
    DropDowns resetting when change language variable
    Hi,
     
    You are not giving enough information
     
    You said
     
    All my drop downs have items coded with 
    If( varLang="en-ca", [items],[french items})
     
    When do you change the varLang???? You don't say
    Do you have code in the OnChange of the dropdowns?
     
    You also said
    The dropdowns change, but don't read the sharepoint list they are defaulting to the items and are not saving.
     
    I do not understand this, use pictures and examples. The sentence itself doesn't make sense. They are defaulting to items....
    Do you mean from your If(varLang code statement???
     
    I see you said in the AppOnstart you set the varLang but you aren't saying where you update it, or the code.
     
     
     
     
  • Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    DropDowns resetting when change language variable
    Hi 
     
    You have ended the French items with a squiggly bracket -  If( varLang="en-ca", [items],[french items}). I think its a typo. 
    Can you share some pictures please. 
     
    That will be helpful.
     
    Kind regards, 
    Nandit

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard