Skip to main content

Notifications

Community site session details

Community site session details

Session Id : TBKxH62M9Ioy/DeyMfp8Fg
Power Apps - Building Power Apps
Answered

Hide or disable submit button (or button function) if fields aren't filled in

Like (0) ShareShare
ReportReport
Posted on 16 Jun 2022 15:32:49 by

Hi there,

 

I have an app that connects to an SPO list. I would like to stop the below function happening if the required fields aren't first filled in. I would like it to stay on the current screen with the error messages tooltips for each required field (datacard)

 

Patch('Change Management',Defaults('Change Management'),BusinessAreasForm.Updates, AttachmentsForm.Updates, TextInputsForm.Updates, ChoicesForm.Updates); Navigate(SubmitScreen)

 

Right now, it navigates to the SubmitScreen screen but obviously doesn't write to the list if the required fields haven't been filled in

 

Thanks

 

Categories:
  • Community Power Platform Member Profile Picture
    on 16 Jun 2022 at 16:13:51
    Re: Hide or disable submit button (or button function) if fields aren't filled in

    Thanks so much - worked perfectly:

     

    If (IsBlank(DataCardValue15) || IsBlank(DataCardValue31) || IsBlank(DataCardValue32) || IsBlank(DataCardValue35) || IsBlank(DataCardValue38) || IsBlank(DataCardValue39) || IsBlank(DataCardValue40) || IsBlank(DataCardValue18) || IsBlank(DataCardValue19) || IsBlank(DataCardValue21) , Disabled, Edit)

  • Verified answer
    jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on 16 Jun 2022 at 15:37:31
    Re: Hide or disable submit button (or button function) if fields aren't filled in

    Hi,

     

    You should ba able to do it with the DisplayMode (if you want the button to be visible all the time) or with the Visible (if you want to hide button) property.

     

    On the property you choose you can the check for IsBlank

     

    Visible Example:

    If (IsBlank(YouControl), false, true)

     

    DisplayMode Example:

    If (IsBlank(YouControl), Disabled, Edit)

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started