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 / Rename the values of a...
Power Apps
Answered

Rename the values of a combobox and patch

(0) ShareShare
ReportReport
Posted on by 21

Hi,

can anyone please help ?

 

I have a SharePoint list (List1), with a choice field (Duration) containing 3 values: 6,12,longer

 

In my Power Apps, I have added a combobox with the items populated by the SP Choice field - Items formula = Choices(List1.Duration)

 

Instead of displaying 6,12 and longer in my combobox, I want to display "6 months", "12 months" and "Longer".

 

Then after selecting a value, I want the original value to be patched to my SharePoint Column.

 

How can I achieve this please ?

 

Thanks for your help

Christophe

 

Categories:
  • RogierE Profile Picture
    879 Moderator on at

    You can definately do that, but have you considered just changing the name of the choices in your SharePoint List?

  • CTR1 Profile Picture
    21 on at

    Hi @RogierE,

    changing the choices is the SharePoint list is not an option.

  • Verified answer
    RogierE Profile Picture
    879 Moderator on at

    Okay, just checking. If you would want to stick to the setup in the SharePiont list, what you could do is change the Items property of your Dropdown to 

    AddColumns(Choices(List1.Duration),"description",If(Value="longer",Value,Value&" months"))
    Now the Items are a two-columned Table with the short description as Value column and a long description as description column. The two things you need to change after that is to switch the Value property to description, and make sure you are using the Dropdown.Selected.Value in the code where you store your selection back to the SharePoint list. 
     
    Please like the reply and/or accept it as the solution if the answer is what you were looking for.
  • CTR1 Profile Picture
    21 on at

    @RogierEthat worked.  Thanks for the help 😊

  • RogierE Profile Picture
    879 Moderator on at

    Don't forget to accept as a solution so that others can find the solution if the same problem would occur for them...

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard