Announcements
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!
@FrostedFlake
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.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-cards#information-flowing-out
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
@GarethPrisk @RandyHayes Thank you guys!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional