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 / set TEXT INPUT to 'Win...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 33

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.

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    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

  • bartvaneynde Profile Picture
    33 on at

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

     

    Have a nice weekend.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard