1

I'm using PowerApps to develop against a SharePoint List. I have a Variable that gets set and I want to set a field in a SharePoint list (within PowerApps) with the value of the variable before "SubmitForm()"

Can anyone help me with this?

Bismarck

1 Answer 1

2

You can see an article here with a nice tutorial: POWER APPS: SET A FIELD VALUE.

You can set the default value to the variable in the OnSave property under SharePointIntegration.

Example:

If(
    SharePointForm1.Mode=New,
    Set(varDefault, User().FullName)
    );
SubmitForm(SharePointForm1) 

Then in the Default property on the field control, put

If(IsBlank(varDefault),ThisItem.[FieldName],varDefault)

So every time a new item gets created, it takes the default value User().FullName when the form gets submitted, but it allows modification on the Edit Form.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.