Hi, currently I'm trying to append the text "inactive" to an already existing data field (which is from a sharepoint list) upon the OnCheck feature of a checkbox, and removing the said text from the data field when the text box is unchecked. Is something like this currently possible in powerapps?
Solved! Go to Solution.
Hi afjm,
Sounds simple enough, but often with these things "simple" is a relative term 🙂
For example - for a simple view text label it's pretty easy - but for an input text control - a lot more complicated.
Can you provide some more details of your example, maybe a screenshot or two?
Basically my approach would be to variabilise the checkbox value and append it to your data value.
Like I said though, this can become really complicated really quickly depending on what you're trying to do - and there may be better ways of doing it, so the more detail you can provide about the ultimate goal here, the better.
To get you going, try this;
Set the OnCheck property of the checkbox to
UpdateContext({checkBoxValue: " - inactive"})
Set the OnUnCheck property to
UpdateContext({checkBoxValue: ""})
Add a text label and set it's Text property to
"text data" & checkBoxValue
If you toggle the checkbox you should see the text label now flip between "text data" and "text data - inactive"
Like I said though, this gets more complicated if you want users to edit "text data" - and also if you want to recall whether the checkbox has been ticked for saved data - so if this doesn't get you what you need, then some more detail would help 🙂
Kind regards,
RT
Hi afjm,
Sounds simple enough, but often with these things "simple" is a relative term 🙂
For example - for a simple view text label it's pretty easy - but for an input text control - a lot more complicated.
Can you provide some more details of your example, maybe a screenshot or two?
Basically my approach would be to variabilise the checkbox value and append it to your data value.
Like I said though, this can become really complicated really quickly depending on what you're trying to do - and there may be better ways of doing it, so the more detail you can provide about the ultimate goal here, the better.
To get you going, try this;
Set the OnCheck property of the checkbox to
UpdateContext({checkBoxValue: " - inactive"})
Set the OnUnCheck property to
UpdateContext({checkBoxValue: ""})
Add a text label and set it's Text property to
"text data" & checkBoxValue
If you toggle the checkbox you should see the text label now flip between "text data" and "text data - inactive"
Like I said though, this gets more complicated if you want users to edit "text data" - and also if you want to recall whether the checkbox has been ticked for saved data - so if this doesn't get you what you need, then some more detail would help 🙂
Kind regards,
RT
User | Count |
---|---|
224 | |
100 | |
95 | |
57 | |
31 |
User | Count |
---|---|
283 | |
114 | |
110 | |
63 | |
57 |