cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bartvaneynde
Frequent Visitor

set TEXT INPUT to 'Windows' or 'Mac' based on selected button

Hello All,

 

I would like to accomplish the following;

When I press the button 'Windows' or 'Mac'; it needs to switch to the corresponding page (which it's does at the moment) & it should set 'Windows' or 'Mac' in the Operating System TEXT INPUT field. The Operating System TEXT INPUT field is part of a SharePoint List.

 

The Operating System TEXT INPUT field is not added onto the first/source screen; but onto the target screen (called Windows_s)

 

The 'Windows'-button is currently set as,

OnSelect = Navigate(Windows_s, Fade)

 

The 'Mac'-button is currently set as,

OnSelect = Navigate(Mac_s, Fade)

 

I'm guessing, and tried, to modify the OnSelect of the buttons so it changes & set the Operating System TEXT INPUT field but nothing worked so far. Does anyone knows the answer to my question? Thank you very much.

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @bartvaneynde ,

 

Try to pass the 'Windows' or 'Mac' into to screen as a  context variable when clicking the button, and then set the variable to the Default property of Text input box.

 

Windows Button. OnSelect: 

Navigate(Windows_s, Fade, {SelectedText: "Windows"})

Mac button.OnSelect:

Navigate(Mac_s, Fade,{SelectedText: "Mac"})

Default property of Text input box:

SelectedText

 

Hope this helps

Sik

View solution in original post

2 REPLIES 2
v-siky-msft
Community Support
Community Support

Hi @bartvaneynde ,

 

Try to pass the 'Windows' or 'Mac' into to screen as a  context variable when clicking the button, and then set the variable to the Default property of Text input box.

 

Windows Button. OnSelect: 

Navigate(Windows_s, Fade, {SelectedText: "Windows"})

Mac button.OnSelect:

Navigate(Mac_s, Fade,{SelectedText: "Mac"})

Default property of Text input box:

SelectedText

 

Hope this helps

Sik

View solution in original post

@v-siky-msft Thank you very much, it worked!

 

Have a nice weekend.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,848)