Is there a way to change text box value without using variable? I created a repeating table by watching this YouTube video. It works great and something I want to use on my app. But rather than using textboxes to input the email address and job title, I was wondering if I could use a combo box, search for the person's name, and populate the two text boxes?
---Edited---
The Gallery has 3 fields/columns:
- Combo Box with Item property set to
Office365Users.SearchUser({searchTerm:ComboBox5.SearchText}) - The other two fields have default property as LineName and LineTitle respectively.
- Each row has a plus icon with onSelect property:
Patch(ReviewerCollection, ThisItem, {LineName: TextInput4.Text, LineTitle: TextInput5.Text}); Collect(ReviewerCollection, {LineName: "", LineTitle: ""})
What I want to accomplish is that each time the ComboBox5 is changed, I want to populate the current item's LineName and LineTitle with ComboBox5.Selected.Mail and ComboBox5.Selected.JobTitle
I tried below on OnChange property of ComboBox5, it does not give any error but it doesnt do anything as well. Somehow I think I need ThisItem somwhere but none of my attempts worked.
UpdateContext({LineName:ComboBox5.Selected.Mail})