cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ömer
Resolver I
Resolver I

Setting Variable with a Combination box

Hello together i have a little question on my PowerApps.

 

In my PowerApps I have ComBox field with 3 possible choices. 

 

And I am trying to set a variable based on the ComBox

 

set (varRequest;ComBox1.SelectedItems.Value) 

 

is the solution i have right now but i get this error message 

Calling an unknown or unsupported function

 

i would be greatfull for any help 🙂

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Ömer ,

 

You are on the right path. Please change you code to

Set(
   varRequest;
   ComBox1.Selected.Value
) 

and put it inside the OnSelect property of your button. After that change the textinput's Default property (or if you are using a label, the Text property) to varRequest.

 

Let me know if this works for you. 

View solution in original post

3 REPLIES 3
Ömer
Resolver I
Resolver I

Maybe more information i want to build a button when i cklick on it the choice of the Combox is transferd to the textinput or label tried with both 

Hello @Ömer ,

 

You are on the right path. Please change you code to

Set(
   varRequest;
   ComBox1.Selected.Value
) 

and put it inside the OnSelect property of your button. After that change the textinput's Default property (or if you are using a label, the Text property) to varRequest.

 

Let me know if this works for you. 

Ömer
Resolver I
Resolver I

Thank you i have put the code into the button and then I set the name of the variable into the textfield like you said now it works 🙂

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,935)