Hello,
I have created a powerapp form a sharepoint list that has one item. Additionally, I have created a submit form linked to the list item. However, The EditForm is not updating the item in the list. Please see below my configuration. ( for info the powerapp is embeded in the sharepoint site )
Your help is appreciated
Solved! Go to Solution.
@Najwa_Rahal
You should put this code in the OnSelect property of your Submit button instead.
SubmitForm(Form1)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hello @mdevaney ,
I tried SubmitForm(Form1) and yet when I Edit the fields and submit the Form gets back the initial data prior to Edit.
I feel that when I click submit the Form gets re-initialised with the original data of the item. is it because I have set the form to lookup for the item :
LookUp(Scope,Title="Super") .
As if when I submit my form , the above code runs and the form details gets re-initialized with the original data ? Or I am completely wrong ?
Thank you.
Najwa.
@Najwa_Rahal
You should put this code in the OnSelect property of your Submit button instead.
SubmitForm(Form1)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hello @mdevaney ,
I tried SubmitForm(Form1) and yet when I Edit the fields and submit the Form gets back the initial data prior to Edit.
I feel that when I click submit the Form gets re-initialised with the original data of the item. is it because I have set the form to lookup for the item :
LookUp(Scope,Title="Super") .
As if when I submit my form , the above code runs and the form details gets re-initialized with the original data ? Or I am completely wrong ?
Thank you.
Najwa.
@Najwa_Rahal
Check your datasource. Did the datasource update with the new values?
If yes, the form is showing the wrong data because you have not used the correct code in the Item Property of the form. You can put this code in the OnSuccess property of your form
Set(currentRecord, Form1.LastSubmit.ID)
Then use this code in the Item property of your Form.
LookUp(your_datasource_name, ID = currentRecord.ID)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
hi @mdevaney ,
Weirdly enough , I retried it now and it works . I think it required some time to get updated.
Thank you for your help.
Najwa.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
197 | |
69 | |
47 | |
36 | |
25 |
User | Count |
---|---|
239 | |
110 | |
89 | |
88 | |
66 |