I want to change the "Text" property of a Textfield when i submit my form. How can i assign a value to a Textfield out of the OnSubmit property?
In C# i would just assign it like this:
Class.Text = "XYZ"
Thanks!
Solved! Go to Solution.
PowerApps uses values by reference not by assignment.
I am not sure what the OnSubmit property is that you refer to. I am assuming you mean the OnSuccess of your form.
If so, you can set a variable in your OnSuccess action. Either a screen variable - UpdateContext({someVar:"SomeVal"}) or a global app variable - Set(someVar, "SameVal")
You can then set the Text property of your control (presumably a label) to someVar
I hope this is helpful for you.
To expand on @RandyHayes' response, you may be looking to change/set the Update property of the Data Card within the form.
In a nutshell:
You can unlock the Data Card and update the individual controls, and the properties of the Data Card itself. In your example, you'd be looking to
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-forms
PowerApps uses values by reference not by assignment.
I am not sure what the OnSubmit property is that you refer to. I am assuming you mean the OnSuccess of your form.
If so, you can set a variable in your OnSuccess action. Either a screen variable - UpdateContext({someVar:"SomeVal"}) or a global app variable - Set(someVar, "SameVal")
You can then set the Text property of your control (presumably a label) to someVar
I hope this is helpful for you.
To expand on @RandyHayes' response, you may be looking to change/set the Update property of the Data Card within the form.
In a nutshell:
You can unlock the Data Card and update the individual controls, and the properties of the Data Card itself. In your example, you'd be looking to
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-forms
User | Count |
---|---|
164 | |
91 | |
67 | |
64 | |
63 |
User | Count |
---|---|
212 | |
157 | |
93 | |
81 | |
73 |