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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Make button visible us...
Power Apps
Answered

Make button visible using Validation in PowerApps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have three forms in my PowerApp:

 

  • Form A (Form A contains two fields that are required)
  • Form B (no fields are required)
  • Form C (no fields are requred)

I also have two buttons:

  • Button - Save for Later
  • Button - Save and Submit

How can I make sure, when Form A, B, and C all have values for each form, that the Save and Submit button would be visible? An email will go out to someone once that button is submitted, but only after every field has a value.

Categories:
  • OneThing Profile Picture
    393 on at

    Hi @Anonymous

     

    You can use the IsBlank() function to achieve this by setting the following to the DisplayMode Attribute of the submit button

     

    If(IsBlank(TextInput1) || IsBlank(TextInput2),DisplayMode.Disabled,DisplayMode.Edit)

    Replace Textinput fields with the names of your required fields, and this should only enable the button when they both have data in them.

     

     

    Thanks,
    Nicky

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @OneThing Thanks Nicky. That was a great idea. 

     

    Now, I have three additional dropdowns (dropdown A, B, and C). How can add to the formula to only also enable the button when the dropdown fill for these dropdowns do not equal red? 

     

     

     

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Could you please share a bit more about the additional dropdowns (Dropdown A, B and C) that you mentioned?

    Could you please also share a bit more about the red that you mentioned?

    I assume that the red that you mentioned is a choice value option within these three Dropdowns, in order to achieve your needs, please take a try with the following formula:

    Set the Visible property of the "Save" and "Submit" button to following formula:

    If(
     IsBlank(DataCardValue1.Text) || /* <-- DataCardValue1, DataCardValue2, ... represent the corresponding controls related to fields within your Form A, B and C */
     IsBlank(DataCardValue2.Text) ||
     ...
     DropdownA.Selected.Value="Red" || /* <-- Add formula here  START */
     DropdownB.Selected.Value="Red" ||
     DropdownC.Selected.Value="Red", /* <-- Add formula here END */
     false,
     true
    )

    You could also consider take a try with the following formula:

    Set the DisplayMode property of "Save" and "Submit" button to following formula:

    If(
     IsBlank(DataCardValue1.Text) || /* <-- DataCardValue1, DataCardValue2, ... represent the corresponding controls related to fields within your Form A, B and C */
     IsBlank(DataCardValue2.Text) ||
     ...
     DropdownA.Selected.Value="Red" || /* <-- Add formula here  START */
     DropdownB.Selected.Value="Red" ||
     DropdownC.Selected.Value="Red", /* <-- Add formula here END */
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

    Best regards,

    Kris 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard