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 / Cannot attach choice f...
Power Apps
Unanswered

Cannot attach choice field parameter in Launch

(0) ShareShare
ReportReport
Posted on by 31

I am trying to figure out why launch will pass a string parameter but not a choice field value like Choice.Selected.Value, any ideas? I have tried Concatenate(Choice.Selected.Value) to see if I can convert it to a string, it shows the parameter field in the URL but no value.

 

Thanks,

   -Erik

Categories:
  • EddieE Profile Picture
    4,650 Moderator on at

    @Erik63 

    Try using the Text function, ie

     

    Text(Choice.Selected.Value)

     

  • Erik63 Profile Picture
    31 on at

    Thanks @EddieE, but unfortunately that does not work either.  I cannot seem to pass text or selected.Values.  The only thing I can pass is a label, what was generated with a Concat function, or a text/label input that has its text set to a hard coded "" value.  

     

    I tried Concatenate(Choice.Selected.Value) just to see what would happen.  When I did that I could see the parameter assignment in the URL but not assigned to anything. 

     Test-text is the concat function and projectType is the Concatenate(Choice.Selected.Value)

    https://apps.powerapps.com/play/e99bc44c-2497-4383-bdf3-ddf607604303?projectName=Test-text&projectType=

  • EddieE Profile Picture
    4,650 Moderator on at

    @Erik63 

    Can you share the code that builds the URL. It may also be to do with spaces in your Project Type. If this is the case you’ll need to replace those with %20 using the Substitute function. 

    A URL cannot contain any spaces.

  • Erik63 Profile Picture
    31 on at

    Sure.  This is what I have in OnSuccess for the form:

    esetForm(Self);Launch("https://apps.powerapps.com/play/e99bc44c-2497-4383-bdf3-ddf607604303",
    {projectName:FinalName.Text,projectType:Text(ProjectType.Selected.Value),boardType:EnterParam.Text});
    RequestHide()

     

    Thanks!

        -Erik

  • Erik63 Profile Picture
    31 on at

    Sorry, forgot the question mark at the end of the code above when I pasted it. Should be https://apps.powerapps.com/play/e99bc44c-2497-4383-bdf3-ddf607604303?

  • EddieE Profile Picture
    4,650 Moderator on at

    @Erik63 

    So, would this code ever have any spaces in the projectType?

     

    ProjectType.Selected.Value

  • Erik63 Profile Picture
    31 on at

    No, but I did not think of that, thanks for the heads-up!

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard