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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Popup to indicated uns...
Power Apps
Answered

Popup to indicated unsaved work

(0) ShareShare
ReportReport
Posted on by 1,512

I have a screen and on it there is a Form and two galleries, there is a parent child relationship already setup and working for this screen.  The issue I am facing is the Attibutes Gallery (Gallery4) has 12 dropdowns and there is a save button in the gallery to save the changes of these dropdowns, it works fine the issue is that if the user doesnt click the SAVE button this information is saved back to the child SharePoint list.  I need to have a popup that says you have not saved the item in the gallery.

 

I know this can be done for the form, but the Submit Form button will handle that just need to be able to show the popup if they want to hit the submit button but the Save button in the gallery has not been saved.

 

Any help would be appreciated.

 

Dorinda

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Dorinda ,

     

    Usually when we meet this situation, we will use a variable to save current status. Based on the variable we could modify the edit mode of the save button, so when some work has not been done the value of the variable will be false by default and the save button or navigation button would be disabled. 

     

    On your end, for example, you could set this screen OnVisible a variable:

    UpdateContext({varSaved: false})

    change the value OnSelect of the Save button in the Gallery:

    UpdateContext({varSaved: true})

    DisplayMode of the submit button:

    If(varSaved, DisplayMode.Edit, DisplayMode.Disabled)

     

    OnSelect of the Submit button:

    If(varSaved, SubmitForm(YourForm); Navigate(Screen1), Navigate(PopupScreen);Notify("you have not saved the item in the gallery",NotificationType.Error))

    This would help navigate to the popup screen with an error message popping up on the top.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard