web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / working with form usin...
Power Apps
Answered

working with form using SharePoint as data source

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am an absolute beginner on power apps. I am currently developing a form for office entrance. so I would like to ask about is it possible to let user only enter the data once and can later update certain field whenever they use the application when the data-source use is share point list? and how am I going to display the data from form to label in the next page? thank you 🙂 here I attache the form page of my application.form page for office entranceform page for office entrance

Categories:
  • KrishnaV Profile Picture
    5,023 on at

    Hi @Anonymous ,

     

    Let me answer your request with 2 answers:

    1. Restricting user with one submission:

    Set this formula on the submit button DisplayMode property

    If(CountRows(filter(SPList,CreatedBy.Email=User().Email))>0,DisplayMode.Dissabled,DisplayMode.edit)

    2. Show the submitted values on the next screen:
          Pass the values to next screen onSelect of the submit button as below:

    Navigate(screen1,{Name:textName.text,phoneNumber:txtphonenumber.text......Add the controls})

    OnScreen 2 Please use as below:
    add a label and set the value of the label with Name


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Based on the needs that you mentioned, I think the PowerApps could achieve your needs. I assume the "Name" field is the Unique Identifier column in your SP List, which could identify one record uniquely.

     

    I have made a test on my side, please consider take a try with the following workaround:

    Set the OnStart property of App to following:

    Set(
     PreservedRecord,
     LookUp('Your SP list', Name = User().FullName)
    );
    If(
     IsBlank(PreservedRecord),
     NewForm(EditForm1),
     EditForm(EditForm1)
    )

     

    Set the Item property of the Edit form to following:

    PreservedRecord

     

    In addition, if you want to display the data using Labels in next page, please try the following workaround:

    Set the Text property of Name Label to following:

    NameTextBox.Text

    set the Text property of the Phone Number Label to following:

    PhooneNumberTextBox.Text

    set the Text property of the Date Label to following:

    DateFieldDataCard.Update //DateFieldDataCard represents the Date Field data card in your Edit form

    Note: NameTextBox, PhoneNumberTextBox, .. represents the Text Input boxes in your Edit form.

    ...

    ....

    Please try above solution, hopes it could solve your problem.

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, thank you for the reply..

    I've tried to do for the navigating the form input to the next page like this

    yani2020_0-1595813246244.png

    is it the label name for the page I'm navigating or the name of the sharepoint list? 

     

    while for the display mode,

    yani2020_1-1595813453152.png

    Created By seems not to work.. Data is the name of my sharepoint list..

     

    Thank you again 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for the reply 🙂

     

    here is my OnStart properties

    yani2020_0-1595813707125.png

    and I tried to set the item properties of the edit form as Preserved Data but it will not show up my form when I run the application

    yani2020_1-1595813816100.png

    here my Item property of the form

     

    Thank you again 🙂

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Please consider modify the formula within the OnStart property of App to following:

    Set(
     PreservedRecord,
     LookUp('Your SP list', Name = User().FullName)
    );
    If(
     IsBlank(PreservedRecord),
     NewForm(EditForm1);Navigate(EditFromScreen), // Add formula here
     EditForm(EditForm1);Navigate(EditFromScreen) // Add formula here
    )

    Note: The EditFormScreen represents the screen in your app which holds your Edit form.

    Please re-load your canvas app again, check if you would be navigate to corresponding screen.

     

    Set the Item property of the Edit form to following:

    If(
     !IsBlank(PreservedRecord),
     PreservedRecord,
     Defaults(Data)
    )

    or

    If(
     !IsBlank(PreservedRecord),
     LookUp(Data, ID = PreservedRecord.ID),
     Defaults(Data)
    )

     

    Please try above solution, hope it solves your problem.

     

    Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so so much for the solution 😊

    yani2020_1-1596425862587.png

    here is my item property.

     

    yani2020_2-1596425950950.png

    here is my OnStart of the apps.. for the lookup I used email because it returns error when  I use name.. screen 1 is my page that contains the form..

     

    It runs with no error, but when I go back to use the form it is still comes back to the empty form.. I want to achieve a form that user can only enter data once and when they open again their data is there in the form .. is it possible or am I doing it the wrong way from your solution? Thank you again 😊

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard