Hello,
is it possible to configure the following properties on text input?
The first three (default, hover and pressed) are no problem. But how can I implement the fourth one? Selected means, when the input field is selected, the text field should appear light blue.
Thanks.
Solved! Go to Solution.
Hi @MichaGue
You can use a variable to control the fill colour along with the 'OnSelect' property of the field
In the 'OnSelect' property of say TextInput1 add the following
Set(varSelected, 1)
Then in the Fill property of the TextInput1 add this
If(varSelected = 1, YourSelectedColour, DefaultColour)
Note, if using this approach on multiply textinput fields, you will need to assign a unique variable for the onselect of each control.
When a user completes a field and then clicks to the next field, that should change the variable and change the selected fill to the now selected field only. Though make sure to clear the variable at the right time so that no fields are showing the selected fill when they shouldn't be i.e. when you submit your data add the following:
Set(varSelected, Blank())
Hope this helps
Hi @MichaGue
You can use a variable to control the fill colour along with the 'OnSelect' property of the field
In the 'OnSelect' property of say TextInput1 add the following
Set(varSelected, 1)
Then in the Fill property of the TextInput1 add this
If(varSelected = 1, YourSelectedColour, DefaultColour)
Note, if using this approach on multiply textinput fields, you will need to assign a unique variable for the onselect of each control.
When a user completes a field and then clicks to the next field, that should change the variable and change the selected fill to the now selected field only. Though make sure to clear the variable at the right time so that no fields are showing the selected fill when they shouldn't be i.e. when you submit your data add the following:
Set(varSelected, Blank())
Hope this helps
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
70 | |
50 | |
37 | |
25 |
User | Count |
---|---|
239 | |
111 | |
91 | |
89 | |
67 |