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 / Choice function not wo...
Power Apps
Unanswered

Choice function not working

(0) ShareShare
ReportReport
Posted on by 10

Hi,

 

I want to add a radio buttons, and add the values from the choice column from Sharepoint list.

 

I am using the choice function in item property of the radio buttons, but it is not working.

 

 

 

 

Choices(Sharepointlist.choicecolumnintheSPL)

 

 

 

 

 Powerapps doesn't offer me the choice column name at all after typing a period after the SPL.

 

Please, help me.

 

Thank you

 

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    I have tested this and it working fine on my end. If you want ALL the choices available to that column it is

    Choices(SPListName.ColumnName)

    If you want only the choices currently selected for a record in the list it is(If the item is located in a gallery)

    ThisItem.ColumnName

     

    or for the First Item (not in gallery radio by itself)

    First(SPListName).ColumnName

     

    or to return specific records choices via LookUp

    LookUp(SPListName, ID=3,ColumnName)
  • wsmith3675 Profile Picture
    49 on at

    I am having the same issue. Were you able to find a workaround ? 

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    @wsmith3675 my answer above works for referencing a choice columns choices.

     

    what happens when you type the dot after your splist name, does it give you columns an you just dont recognize any of them as your column name? If so, go to the list, in upper right hand click the gear icon, click list settings, on the settings page click the name of this column, then once on its page look at the address bar and look at the end of the address for what follows the =, this is the reference-able column name

  • wsmith3675 Profile Picture
    49 on at

    Thanks for replying

     

    Once I type in the SpList Name and then the dot it doesn't show me any of my field names

     

    I've done it Choices(SPlistName. ) but none of the fields populate

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Just tested on my side, also was not showing up behind the dot as usual BUT I jsut typed the name of the column and closed it and it worked as expected see below

     

    TheRobRush_0-1683149496017.png

     

    So go ahead and just type i tlike this

    Choices(SharepointList.Column)

    and don't worry about it not autopopulating, then close it and it should show as expected. I f you are unsure of where to find the correct name of your column see my prev comment

     

  • wsmith3675 Profile Picture
    49 on at

    It gives me this error. I am using the same Department field in the gallery (Legal and Compliance) 

     

    Thanks again for your assistance!

    Screenshot 2023-05-03 165326.png
  • TheRobRush Profile Picture
    11,128 Moderator on at

    I know it's redundant but can you go verify in the http address bar of this column in list settings that it is showing there same as you have written it? sometimes it chanegs itself when column is changed etc over time

  • wsmith3675 Profile Picture
    49 on at

    No problem, this is how it shows on the bar 

    =Department_x0020_2

  • TheRobRush Profile Picture
    11,128 Moderator on at

    so yah it was 'Department 2' originally which gets refereced as seen in your example you just shared. so what you want it to read now is

    Choices('Contract Management (Mock)'.Department_x0020_2)

     

    can also try,

    Choices('Contract Management (Mock)'.'Department 2')

    depending on its mood.

     

    In future, just to be safe, try and plan column names ahead of time, and never put a space in one

  • wsmith3675 Profile Picture
    49 on at

    That was the issue! Thanks so much, now I can add this back to filtering my gallery 

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 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard