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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DropDowns resetting wh...
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:
I have the same question (0)
  • Nandit Profile Picture
    1,568 Moderator on at
    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
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    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.
     
     
     
     
  • leenie74 Profile Picture
    8 on at
     
     
    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. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard