cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Helper II
Helper II

Re: update Textinput value based on selected value of list box

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

Re: update Textinput value based on selected value of list box

@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."

Highlighted
Helper II
Helper II

Re: update Textinput value based on selected value of list box

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,990)