Hello community,
I have a question. I have a button, and when a user select the button, I want it to enable the input text box next to it.
So by default, the input text box will be disable and can only be enable when button next to it is clicked.
I tried a function on the button: OnSelect: Q_TextInput.DisplayMode.Edit
but it doesn't work. Any help is appreciated, thank you.
Solved! Go to Solution.
Use a toggle instead of a button. Then put this code in the DisplayMode of the Text Input
If(Toggle1.Value=true, DisplayMode.Edit, DisplayMode.Disabled)
---
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."
Hi,
You can use variables for this. Following are the steps,
Please click Accept as Solution, if this solution solved your issue. If this post was useful, please consider giving it Thumbs Up.
Thanks & Regards,
Devendra Singh
I found another way.
First, I added a toggle just like the previous answer mentioned and set the input text display mode with the function: If(Toggle1.Value=true, DisplayMode.Edit, DisplayMode.Disabled)
Then with the button, I have a function of Onselect: Set(setToggle1,true)
And in the Toggle1 defult: setToggle1 (setting up the variable here)
Have the Toggle1 visable to be false then it acts like the button is enabling the input text.
Use a toggle instead of a button. Then put this code in the DisplayMode of the Text Input
If(Toggle1.Value=true, DisplayMode.Edit, DisplayMode.Disabled)
---
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."
For a button to work, you can use UpdateContext({enablebox:DisplayMode.Edit}) in its OnSelect property and in the TextInput box put its DisplayMode property as enablebox. You would put UpdateContext({enablebox:DisplayMode.Disabled}) in the OnVisible property of the screen. That would set the default display mode of the TextInput to disabled.
Given that I think @mdevaney 's idea is better.
Hi,
You can use variables for this. Following are the steps,
Please click Accept as Solution, if this solution solved your issue. If this post was useful, please consider giving it Thumbs Up.
Thanks & Regards,
Devendra Singh
I found another way.
First, I added a toggle just like the previous answer mentioned and set the input text display mode with the function: If(Toggle1.Value=true, DisplayMode.Edit, DisplayMode.Disabled)
Then with the button, I have a function of Onselect: Set(setToggle1,true)
And in the Toggle1 defult: setToggle1 (setting up the variable here)
Have the Toggle1 visable to be false then it acts like the button is enabling the input text.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
User | Count |
---|---|
200 | |
96 | |
56 | |
51 | |
41 |
User | Count |
---|---|
264 | |
157 | |
83 | |
80 | |
56 |