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 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:
I have the same question (0)
  • RogierE Profile Picture
    875 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
    875 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
    875 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard