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 / Dropdown Screen not wo...
Power Apps
Answered

Dropdown Screen not working (e.g no auto update value)

(0) ShareShare
ReportReport
Posted on by 825

Hi @mdevaney 

 

I'm trying to use the dropdown from a different list of my SharePoint but I'm not getting value properly. 

For eg i have two forms one form is been automatically created from sharepoint list when the app was created and the other form is been created by mee using the different list on sharepoint. The from works fine with all the terms now, like edit update and delete etc. 

But when the user selects the unitname in form form1, the unit total balance is not displayed as the user clicks on, it is only populated if or else user goes back to the browsescreen and the go to detail screen and then back to home, i dont know why ? 

 

please see the formula used here for form2 where im getting the details 

Default control: 

DataCardValue12.SearchText  Note: the datacard value is on form1 

 

Items:

 Filter('Unit Codes', 'Unit Name' = DataCardValue12.Selected.Value) 

 

Update: 

Dropdown2.Selected.'Total Balance'

 

 

Detail of form1 

Onsuccess 

Navigate(Screen1); ResetForm(EditForm4)

 

 

OnSelect of submit:

SubmitForm(EditForm1) ; ResetForm(EditForm4)Display.png

 

Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Tapesh ,

    Does the Editform4 represents the Form2 that you mentioned?

    Could you please share a bit more about your scenario? Do you want to populate a Dropdown box based on selected value within the DataCardValue12 in the Form1?

    Further, do you mean that the Dropdown2 could not be populated with available options when you navigate from your Form1 to your Form2?

     

    Based on the issue that you mentioned, I think this issue is related to SubmitForm() function used in the "Submit" button within your Form1 screen.

    When you click the "Submit" button to submit your Form1 data, the SubmitForm(EditForm1) formula would be executed. When the SubmitForm(EditForm1) formula executes successfully, the Editform1 would be reset, so the DataCardValue12.Selected.Value formula would be reset and return Blank value.

     

    As an alternative solution, you could consider store the selected value within the DataCardValue12 into a variable, and then use this variable as filter value within the Filter formula you specified. Please consider take a try with the following workaround:

    Set the OnSelect property of the "Submit" button in your Form1 screen to following:

    Set(SelectedUnitName, DataCardValue12.Selected.Value); // Add this formula
    SubmitForm(EditForm1); 
    ResetForm(EditForm4)

     

    Within your Form2, set the Items property of the Dropdown2 to following:

     Filter('Unit Codes', 'Unit Name' = SelectedUnitName) 

    set the Update property of the Dropdown2 field data card to following:

    Dropdown2.Selected.'Total Balance'

    Note: Also please remove the formula within the Default property of Dropdown2. I assume that the 'Unit Name' field is a Text type field in your 'Unit Codes' SP List. If the 'Unit Name' field is a Choice type field, you need to modify above Filter formula as below:

     Filter('Unit Codes', 'Unit Name'.Value = SelectedUnitName) 

     

    If the Dropdown2 is actually a ComboBox control, and you want to set a default value within this ComboBox, please set the DefaultSelectedItems property to following:

    {
     'Total Balance': "Specific Value"
    }

    Note: I assume you specify the 'Total Balance' field as display column value within the ComboBox.

     

    In addition, you could also consider take a try with the following another solution:

    Set the OnSuccess property of the Form1 to following:

    Navigate(Screen1, ScreenTransition.Fade, {SelectedUnitName: EditForm1.LastSubmit.'Unit Name Field'.Value}); ResetForm(EditForm4)

    Note: The 'Unit Name Field' represents the field in EditForm1, which is related to the DataCardValue12.

    Within your Form2, set the Items property of the Dropdown2 to following::

     Filter('Unit Codes', 'Unit Name' = SelectedUnitName) 

     

    Best regards,

  • Tapesh Profile Picture
    825 on at

    This Seems to be work, sir. 

    Thanks a lot for the help and for clearing my doubts so quickly.

     

    Just one thing do you have any idea how can you create the Autogenerated IDs? such that when the record is created has a unique ID and if deleted should be reset for a new one just as we do it in SQL and EXCEL when the record is created, updated and deleted? 

     

    @v-xida-msft 

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 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard