How to set the SharePoint field value dynamically over a button click in edit form using PowerApps
-
20-02-2021 - |
Question
I have a list with edit form has been customized using PowerApps. On edit form opening the fields have been rendering the selected item's respective values. Over the form I have a button which do some concatenation operation and will update the field from which it took the value for concatenate operation.
I tried assigning the value using the field's Default property, but it does not work.
Kindly help me on how to update this field over the PowerApps form using button click.
Thanks in advance
No correct solution
OTHER TIPS
Here are the steps:
Declare and initialize a global variable on [OnStart] by clicking [App] in Tree view. For example, for [Title] column something like
Set(varTitle, "")
On the custom Form, set the [Default] property of the field/column to
If(IsBlank(varTitle), Parent.Default, varTitle)
Add two buttons outside the forms - a) Concat b) Clear
Contact button's [OnSelect] expression:
Set(varTitle, TitleValue & " TEST");
Where TitleValue is the name of the data card for Title Value
Clear button's [OnSelect] expression: Set(varTitle,"")