cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oappdev
Post Prodigy
Post Prodigy

Fill the TextBox with data from the Radio or ComboBox.

Hello Power Apps Community,

 

What is the best scenario to auto-fill a textbox from either a selected radio or Combo Box value?

 

Textbox Default: 

Radio1.Selected.Value & "%"

 

Combo Items:

["25%","50%","75%"]

 

Screenshot 2022-05-19 210202.png

 

Screenshot 2022-05-19 211040.png

 

As always, thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
AJ_Z
Super User
Super User

If my understanding is correct you are saying that if it is other pull from the combo box but if it is Yes make it 100 🙂

in that case the logic is this for the text box instead of Radio1.Selected.Value & "%" do :


 

If(
    Radio1.Selected.Item = "Other",
    ComboBox1.Selected.Value,
    Radio1.Selected.Value & "%"
)

 


you will need to replace ComboBox1 with the name of you combobox.

If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !

View solution in original post

5 REPLIES 5
AJ_Z
Super User
Super User

Are you asking what looks better if so personally I like the idea of using combobox for this 🙂

 

If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !

oappdev
Post Prodigy
Post Prodigy

Hello @AJ_Z , 

 

My apologies. It was late when I posted this. Thank you for the comments. 😁

 

What I am trying to accomplish is when a user selects Yes, No, or N/A on the radio button or the [Other]- (Combo Box), it will auto-fill the text box.

 

I hope I have explained myself well,

 

Radio Button Item:

 

 

Table({Item:"Yes",Value:100},{Item:"No"},{Item:"N/A"},{Item:"Other"})

 

 

 

Combo Box Item:

 

 

["25%","50%","75%"]

 

 

 

Rating.PNG

 

Thank you in advance.

AJ_Z
Super User
Super User

If my understanding is correct you are saying that if it is other pull from the combo box but if it is Yes make it 100 🙂

in that case the logic is this for the text box instead of Radio1.Selected.Value & "%" do :


 

If(
    Radio1.Selected.Item = "Other",
    ComboBox1.Selected.Value,
    Radio1.Selected.Value & "%"
)

 


you will need to replace ComboBox1 with the name of you combobox.

If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !

oappdev
Post Prodigy
Post Prodigy

Thank you so much, @AJ_Z . That was it. Much appreciated.

I am delighted to have been able to help 🙂

 

If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,864)