Thank you for taking the time to read my question.
Is it possible to select the value that already exists inside a label or a Text Input when it receives the focus?
On my Screen I have a drop down. When the user selects a value from the drop down I set the focus to my label. The Label's Text value is a Lookup, so I want to select the returned value when the label receives the focus.
Thanks!
Do you want to literally copy the text or simply provide that as a starting point and allow users to override? Sorry if thats a dumb question. Just trying to understand the exact use case.
I have one other idea before I test it out. Add a label and then a text input control on top of it. Set the labels text to be based on the dropdown as discussed previously using Lookup(based on DropDown value selected by user));, then set the text input control's fill property to:
If(IsBlank(Self.Text), Transparent, White)
This was, when the focus is set on the text input control, they will see the text and can start typing in since the focus will be set on the text input control.
I will still try this out if this doesn't solve your use case since it sounds very interesting 🙂
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
https://thepoweraddict.com
Hi, sorry for my slow reply. I was called into other tasks but am back now.
Yes I literally want to copy the value that is derived after the user makes selections from the dropdown boxes. We need to paste it into another system. This is a crude way of doing things I know but we have no other choice at the moment.
Thanks again
Hi @iwonder
If you really want the ability to copy text from Power Apps, this might be useful for you:
Not sure how critical this functionality is for you, but may be worth an analysis to figure out if using a PCF control for this will be something that works for you.
Let me know if this helps.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
User | Count |
---|---|
221 | |
99 | |
94 | |
55 | |
36 |
User | Count |
---|---|
273 | |
105 | |
104 | |
60 | |
60 |