cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ashokpershad
Kudo Kingpin
Kudo Kingpin

New Form Control to be used only one time

I am building one App where I want to use the Profile Update form as "NewForm" only first time when the user open App. After information update this form should always be visible as "EditForm" whenever user open this form screen. Is there any way to do same? Appreciate help from anyone.

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi @ashokpershad you need to find a way to build a condition and based on it the form type can be set.

 

Consider this:

On AppStart you validate if the user has been registered in the  registration table, the form is set to new form as the user needs to register. Set(varUserIsRegistered, false) or something like that. 

 

If the user does exist then Set(varUserIsRegistered, true) 

 

on the form, set the default mode based on the value of varUserIsRegistered. If(varUserIsRegistered, FormMode.Edit,FormMode.New)

 

If you want the user to register every time they open the app a variant of this can be used.

 

Hope this helps,

R

 

 

View solution in original post

2 REPLIES 2
rubin_boer
Super User
Super User

hi @ashokpershad you need to find a way to build a condition and based on it the form type can be set.

 

Consider this:

On AppStart you validate if the user has been registered in the  registration table, the form is set to new form as the user needs to register. Set(varUserIsRegistered, false) or something like that. 

 

If the user does exist then Set(varUserIsRegistered, true) 

 

on the form, set the default mode based on the value of varUserIsRegistered. If(varUserIsRegistered, FormMode.Edit,FormMode.New)

 

If you want the user to register every time they open the app a variant of this can be used.

 

Hope this helps,

R

 

 

ashokpershad
Kudo Kingpin
Kudo Kingpin

@rubin_boer I will try this out, hope it will work. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,847)