cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahohman
Helper II
Helper II

Populate text box if a dropdown field changes

I have a dropdown field (Yes/No).  If the dropdown is changed, regardless of what is selected, I want the user's name to appear in a text field.  I essentially want to show who changed the dropdown field.  That's it.  See attached screenshot.  Can someone please help?  

Thanks in advance.

 

 

ahohman_0-1612474118968.png

 

 
 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @ahohman ,

You can use a variable to judge if someone change the dropdown. I have done a test in my side, you can refer to my steps:

1. Set OnChange property of your dropdown field to:

Set(var1,1)

2. Set Text property of your text field to:

If(var1=1,User().FullName)

3. Add another action in the OnSelect property of your Submit button, I just have a simple test below, so there is only one action inside my submit button(this action will clear the value of variable when after user submit his information):

Set(var1,Blank())​

 

v-albai-msft_0-1612493224348.png

Best Regards,

Allen

View solution in original post

1 REPLY 1
v-albai-msft
Community Support
Community Support

Hi @ahohman ,

You can use a variable to judge if someone change the dropdown. I have done a test in my side, you can refer to my steps:

1. Set OnChange property of your dropdown field to:

Set(var1,1)

2. Set Text property of your text field to:

If(var1=1,User().FullName)

3. Add another action in the OnSelect property of your Submit button, I just have a simple test below, so there is only one action inside my submit button(this action will clear the value of variable when after user submit his information):

Set(var1,Blank())​

 

v-albai-msft_0-1612493224348.png

Best Regards,

Allen

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 (3,011)