cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JackWu1123
Helper II
Helper II

update Textinput value based on selected value of list box

Hi, 

 

I generated a text input box (Textinput1) and a list box (Listbox1). 

 

The Listbox1 will show a batch of data which was filtered in the source database based on the input of Textinput1.

1.png

What I want is to set the Textinput1 value to the selected value in Listbox1. I have tried to set Textinput1 default value as ListBox1.Selected.Material. It works in another textinput2 But not work in textinput1. Here is the error message.

2.png

 

do anyone know how to set the textinput1 value to the selected value in the list box which was filtered based on textinput1 itself? 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
JackWu1123
Helper II
Helper II

Hi, 

 

This has been resolved when I create a variable to store the item which is selected in list box and set the input box default as the variable. 

 

Thanks!

View solution in original post

2 REPLIES 2
mdevaney
Super User III
Super User III

@JackWu1123 

Your question was:  "Do anyone know how to set the textinput1 value to the selected value in the list box which was filtered based on textinput1 itself? "

 

This is the definition of a circular reference.  You cannot:

  • Use control A 
  • To set control B
  • Which sets control A

 

You many only:

  • Use control A
  • To set control B
  • (Which optionally sets control C)

 

Note: A, B, C are made up control names for the purpose of a basic example

 

 ---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

JackWu1123
Helper II
Helper II

Hi, 

 

This has been resolved when I create a variable to store the item which is selected in list box and set the input box default as the variable. 

 

Thanks!

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,006)