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 III
Super User III

@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 III
Super User III

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 III
Super User III

@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 III
Super User III

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,368)