web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Button Transitions to ...
Power Apps
Unanswered

Button Transitions to a New Screen and Updates a DropDown Column (Allowed Values)

(0) ShareShare
ReportReport
Posted on by 228

Objective: Button transitions to a new screen and updates a DropDown column (Allowed Values) with one of the available options. I have three buttons on the start screen that have a corresponding Option in the target DropDown Column on another screen.

 

Below is screen one, with the button that is to navigate to another screen and update a specific dropdown on that screen. The OnSelect Properties are:

 

NewForm(NCAAccordianForm); Navigate(ScreenNCAAccordian,ScreenTransition.Fade, {SelectedValue: "Individual Tax"})

 

2023-08-29_6-46-17.jpg

Below is Screen two  with the dropdown that is to be updated. The screen OnVisible properties of the screen is: 

UpdateContext({ClientTypeValue: Param("SelectedValue")})

 

2023-08-29_6-46-59.jpg

 

The Default value of the Client Type column is: ClientTypeValue. The value remains blank even though the contextual variable was pushed through to the new screen.

 

Is this the wrong approach? 

 

2023-08-29_7-02-44.jpg

Categories:
I have the same question (0)
  • madlad Profile Picture
    2,637 Moderator on at

    Hi!

     

    I think here you should be able to just change the Default value of the client type to be SelectedValue, since SelectedValue is a context variable for this screen - If you want to keep using ClientTypeValue, try changing the reference in the OnVisible to be:

     

    UpdateContext({ClientTypeValue: SelectedValue})

     

    I believe the Param Function gets values from when the app is launched, not when the screen changes.

     

    Hope this helps!

  • ShondaT Profile Picture
    228 on at

    @madlad Thank you for your suggestion. That doesn't appear to work either. If there's another approach you could suggest I'm definitely all ears. 🙂

  • madlad Profile Picture
    2,637 Moderator on at

    What type of values are the dropdown's choices, and how are they defined in the dropdown?

    You may need to use some formula to find this, as it looks like just using the variable isn't finding a match in the dropdown's choices.

    Let me know!

  • ShondaT Profile Picture
    228 on at

    @madlad The values are: Individual Tax, Entity Tax, Assurance and it is a SharePoint Text Column that I changed to a dropdown within Powerapps by applying Assigned Values.

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @ShondaT,

     

    The comment of @madlad regarding Param is correct. Additionally, the UpdateContext on the Screen Onvisible is not needed since the Navigate function creates a context variable called SelectedValue.

     

    Please try the following code in the DefaultSelectedItems property of that Combobox:

     

    {Value: SelectedValue}

     

     

     

    In case of a custom dropdown which does not have the DefaultSelectedItems property, use the following code in the Default property:

     

    SelectedValue

     

    Make sure the saved text value matches the dropdown options exactly - pay close attention to spaces and capitalization.

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • Verified answer
    ShondaT Profile Picture
    228 on at

    @LaurensM that worked perfectly! Thank you so much!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard