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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Replace Form1.Unsaved on TextInput

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi!

I have decided to not use Forms and instead use TextInput and Patch.

When I used a Form previously, I had a Text Label and Button that only showed if one of the Form fields were changed. If the change was erased, the text label and button disappeared immediately. I used "Form1.Unsaved" in the label and button Visible properties.

I can't seem to replicate this on TextInputs. I have tried "UpdateContext" on the TextInput OnChange Property and the putting the variable as the Visible property in the label and button. However this makes the label and button visible when a change is made but doesn't hide them automatically if I delete the change.

 

Can anyone help?

 

Categories:
I have the same question (0)
  • Ali_Sheraz_77 Profile Picture
    141 on at
    Re: Replace Form1.Unsaved on TextInput

    Hi, @s_tanswell84 
    [

    create variable

    Set(UnsavedChanges, false)

     

    Set the OnChange property of your TextInput

    UpdateContext({UnsavedChanges: true})

    Set the Visible property of the label and button to

    UnsavedChanges

    To automatically reset UnsavedChanges to false when the change is saved or erased, you can use the OnSelect property of the button that saves the changes or any other relevant control. For example, if you have a "Save" button:

    Patch(YourDataSource, ...); // Perform your patch operation
    UpdateContext({UnsavedChanges: false});

    ]
    Please give a thumbs up if this information is helpful.
    Best regards,
    Ali Sheraz

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard