cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sumeetrajan
Helper I
Helper I

Need help in form

Hi,

 

I have created a form to update my SharePoint list. the list would only contain one/user. 

i want the following things to happen ( trying to do it in one screen)

1. If the user is using the app/form for the 1st time, the form mode should be new( it would be only one time)

2. Once the user has submitted the form, he should be able to see what he submitted whenever he opens the app

3. If he wants to update the form, he should have option to do it.

 

the logic I am trying to implement.

if we have data pertaining to the user is in SharePoint (with help of Gallery), display the form in edit mode.

but I am not able to find the logic of how to open the form in a new mode if we don't have done have data fo user in sharepoint

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User
Super User

@sumeetrajan 

Set the form to be in Edit mode.

Then set the Item property to the following:

   Coalesce(LookUp(yourDataList, 'Created By'.Email=User().Email), Defaults(yourDataList))

 

This should give you the functionality you want.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

eka24
Super User
Super User

OnStart of the App have variable;
Set(varUser,User())

 

Then in the Display Mode;
If(IsBlank(LookUp (Datasource, UserColumn= varUser.Email, EntryColumn),DisplayMode.View,DisplayMode.Edit)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@sumeetrajan 

Set the form to be in Edit mode.

Then set the Item property to the following:

   Coalesce(LookUp(yourDataList, 'Created By'.Email=User().Email), Defaults(yourDataList))

 

This should give you the functionality you want.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

eka24
Super User
Super User

OnStart of the App have variable;
Set(varUser,User())

 

Then in the Display Mode;
If(IsBlank(LookUp (Datasource, UserColumn= varUser.Email, EntryColumn),DisplayMode.View,DisplayMode.Edit)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,431)