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
Super User

@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!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,357)