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 / "Pre" choose field val...
Power Apps
Unanswered

"Pre" choose field values for creating new list items

(0) ShareShare
ReportReport
Posted on by 104

Hello.

 

I'm making an app in which a motorcyclist registers his departures and arrivals. I started using the default Powerapps method:

bdv e tela editar.png

 

For the sake of usability, I want to try another method. Since it's necessary to inform a moment, I would like to choose it in an previous screen, based on buttons:

bdv e tela novo.png

 

So, if I press "Saída", I would like to create an item which "Momento" option is automatically selected to "Saída". Is it possible?

 

Thank you in advance!

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @William_Azevedo - you can leverage Local Context Variables:

     

    Apply the below for example on the OnSelect property of your "Saida" Button:

     

    Navigate(
     'Your Form Screen',
     ScreenTransition.Fade,
     {ctx_momento: "Saida"}
    )

     

    And the below on the OnSelect property of your "Chegada" Button:

     

    Navigate(
     'Your Form Screen',
     ScreenTransition.Fade,
     {ctx_momento: "Chegada"}
    )

     

    And then apply the below onto the Default property of your Radio control:

     

    ctx_momento

     

    Alternatively, instead of "passing" Local Context Variables across screens, you can also leverage Global Variables by using: 

     

    "Saida" Button:

     

    Set(
     gbl_momento,
     "Saida"
    );
    Navigate(
     'Your Form Screen',
     ScreenTransition.Fade
    )

     

    "Chegada" Button:

     

    Set(
     gbl_momento,
     "Chegada"
    );
    Navigate(
     'Your Form Screen',
     ScreenTransition.Fade
    )

     

    And then apply the below instead onto the Default property of the Radio control:

     

    gbl_momento

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard