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 / passing parameters and...
Power Apps
Answered

passing parameters and returning a value

(1) ShareShare
ReportReport
Posted on by 20

hello everyone
I want to call a new screen, in the new screen select a value and pass that value back to the element that made the new screen open.
screen1 :
click on the textbox --> open a screen 2

screen2:
select a value from dropdown and return a value in the textbox that opened this window

thanks

Categories:
  • Silvester. Akakpo Profile Picture
    783 on at

    Put the value you want to pass from a screen to the other in a variable.

    Set(VarValue,Dropdown.selected.value)

    Then on the text box in the other screen. set the default to VarValue.

    If you find this post interesting kindly give it a like, and accept it as a solution to help others find it

  • Silvester. Akakpo Profile Picture
    783 on at

    Additionally, on the textbox that opens the screen, set the OnSelect property to 

    Navigate(YourSecondScreen)

    Then Set the dropdown in the follow up screen to my previous post but you add a closing function

    Set(VarValue,Dropdown.selected.value);Back()

    Set the textbox default value to the VarValue.

  • Fischio Profile Picture
    20 on at

    thank you for your reply, I would like to add that the textbox from which the call to screen2 starts is a datacard connected to an excel file from which it retrieves the information.
    is it possible to pass the name of the element that calls screen2 and have screen2 add the text to the calling textbox?
    example:
    textbox1 calls screen2 by passing its name Textbox1, screen2 performs the operation and calls screen1 by writing to TextBox1
    onselect textbox1 = Navigate('Screen2',ScreenTransition.Fade,{selectedItemName:ThisItemName})

    onSelect dropdown ( screen2) = Navigate('Screen1',ScreenTransition.Fade,);screen1.textbox1.text=screen1.textbox1.text &" "&dropdown.selected

    Translated with www.DeepL.com/Translator (free version)

  • Verified answer
    Silvester. Akakpo Profile Picture
    783 on at

    hello @Fischio ,
    Yes, it is very much possible to do. That is what i did in my second comment,
    TextBox1
    On Select property

     

    Navigate(YourSecondScreen)

     

    Default

     

    VarValue

     

    Screen 2
    Dropdown
    OnSelect

     

    Set(VarValue,Dropdown.selected.value);Back()

     


    This should be fine. Let me know how it goes.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard