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 : Xhe/igSjm+CP/95d1Zd+Me
Power Apps - Building Power Apps
Answered

Visibility of the save button depending on

Like (0) ShareShare
ReportReport
Posted on 13 Sep 2020 11:49:34 by 356

Hello community.

I would like to make a save button only visible if the content of a text input box differs from a text in a label.

 

To the background:
I have this screen.

RoScha_0-1599997579048.png

 

If I click on the pen, a text input box appears below which takes the text from the label 1: 1 above. (Next screen)

RoScha_1-1599997630049.png

 

Now I can change this text in the textbox. And only when you have changed this text, the save button should appear.

How do I do it?

Best regards
RoScha

Categories:
I have the same question (0)
  • RoScha Profile Picture
    356 on 13 Sep 2020 at 13:42:20
    Re: Visibility of the save button depending on

    Yes that is exactly the solution. Perfect.

    Many thanks @MarvinBangert 

     

    Best regards

    RoScha

  • Verified answer
    MarvinBangert Profile Picture
    1,922 Most Valuable Professional on 13 Sep 2020 at 12:34:31
    Re: Visibility of the save button depending on

    Hey @RoScha 

    the "OnChange" is only triggered after you clicked outside the box like you can make a lot of changes and Power Apps only checks it once. You are correct, you should use an if statement.

    You can combine these in your Save buttons "Visible" Property like:

    If(varVisible && Label1.Text <> TextInput1.Text,true,false)

    So varVisible must be true and Label1.Text <> (not equal) TextInput1.Text then the button is visible otherwise, it is hidden.

     

    Best regards
    Marvin

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

  • RoScha Profile Picture
    356 on 13 Sep 2020 at 12:14:05
    Re: Visibility of the save button depending on

    @MarvinBangert 

    OK. I tried it and asked another question about it:

    So it is not possible to check whether the text has changed or not while I am writing in the text box. Correct? I always have to click outside the text box to make the savebut visible.

     

    And I have another question. I changed the text back to the original text in the text box and would have thought that the save button would then be invisible again. But he doesn't.

    I suspect I have to add an if-then formula to the "Visible" property of the save button, right?

  • MarvinBangert Profile Picture
    1,922 Most Valuable Professional on 13 Sep 2020 at 12:03:00
    Re: Visibility of the save button depending on

    Hey @RoScha 

     

    there is a property called "OnChange" for the textbox. You could use the function "Set(varVisible,true)" and add the variable "varVisible" to your buttons "Visible" property. The if the text in your textboxed is changed (and you clicked outside the box) the button would appear.

     

    Hope this will help you!

     

    Best regards
    Marvin

    If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to 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

Responsible AI policies

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

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 885 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 571

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 352 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete