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 / Inquiry to use a butto...
Power Apps
Unanswered

Inquiry to use a button as input

(0) ShareShare
ReportReport
Posted on by 27

Hello, dear.

Let me explain. I have a list with a column containing options: "P1Y" and "P1M". I need to make these inputs with buttons as shown on the screen.

 

Claudioram_0-1688145677878.png

 

 

And depending on the button selected, I want it to be added to my collection.

I need your help to know what I should modify in my collection and how to convert the button into an input and display what I selected.

 

My Collect

 

Patch(colPropuesta;Defaults(colPropuesta);{Organización:TextInputOrganizacion.Text;NombreApellido:TextInputNombreApellido.Text;Email:Value(TextInputEmail.HintText);ProductTitle:DropdownProducTitle.Selected})

 

Thank you!

Categories:
I have the same question (0)
  • turnerj3 Profile Picture
    2,039 on at

    @Claudioram ,

    To make the buttons inputs set a variable with their OnSelect property.

    Set(varP1Y,"P1Y") for one button and Set(varP1M,"P1M") for the other.

    For the text property of your Textboxes use:

    varP1Y and varP1M

    Now add values for the columns inside your Patch curly brackets with your other columns:

    {P1Ycolumn:P1Ytextbox.Text,P1Mcolumn:P1Mtextbox.Text}

    Below your Patch code add code to reset variables.

     

    Set(varP1Y,"");
    Set(varP1M,"");
  • Claudioram Profile Picture
    27 on at

    Excuse me. I didn't understand.
    Sorry 😞

  • turnerj3 Profile Picture
    2,039 on at

    First step would be to see if you can set a variable with your First buttons OnSelect Property and get the data to show in the textbox by setting the Textbox text property to the variable name. 

    1st button OnSelect Property = 

    Set(varP1Y,"P1Y")

    1st text box text Property =

    varP1Y
  • Claudioram Profile Picture
    27 on at

    Hello.
    The formula doesn't work.

    Claudioram_0-1688152738153.png

     

     

  • turnerj3 Profile Picture
    2,039 on at

    You gotta give me a little more! Where did you put the formula?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard