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 / Disable Submit Button ...
Power Apps
Unanswered

Disable Submit Button if Datacard value is Nil

(0) ShareShare
ReportReport
Posted on by 11

Hi i want to disable Submit/Check icon if the DatacardValue is blank & need the same to be visible when there is a input in the desired field. I am tried applying the below one in Submit/Check Icon visible. Where as its working to disable, but post input the icon is not visible back again.

 

If(IsBlank(DataCardValue259.Text) || IsBlank(DataCardValue256.Text),false,true)

 

Hope to get the solution for this & Thanks in Advance.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    Do you want it visible only when both fields are filled in?  That's the logic you are using right now.  If you want it to be visible when one of the fields is filled in then change the or '||' to and '&&'.

  • Santosh2803 Profile Picture
    11 on at

    Using the below formula it didnt work

     

    If(IsBlank(DataCardValue259.Text) && IsBlank(DataCardValue256.Text),false,true)

     

    Note:- Default=Parent.default for the datacardvalue

  • Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    You didn't answer my question.  Do you want the submit to be invisible if either of the data cards are empty?  Or only if both of them are empty?  I'm also not sure why you mention Parent.default since you aren't using that in your caclulation.

  • Santosh2803 Profile Picture
    11 on at

    Yes i want the submit to be invisible only if both of them are empty.

     

    Default=Parent.default for the datacardvalue is the default since the data source is from a SharePoint. Kindly suggest if the changes is required

  • Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    If you want them to only be invisible if both data cards are empty then you need to use an and connector instead of an or.  If the default coming from SharePoint isn't empty for one of the fields (or both) then by definition they aren't Blank and switching to and will always show the button unless you remove the values in both fields.

  • Santosh2803 Profile Picture
    11 on at

    Please can you help me with examples, how exactly the below ones to be changed

     

    If(IsBlank(DataCardValue259.Text) && IsBlank(DataCardValue256.Text),false,true)

     

    Note:- Default=Parent.default for the datacardvalue

  • Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    As I said, if the SharePoint list is empty then the code as supplied should work.  If the Parent.defaults have values in one or both fields then IsBlank() won't work because the fields aren't blank.  They have default values.

  • Santosh2803 Profile Picture
    11 on at

    The Entire Sharepoint list is Empty, even though this formulas didnt work.

  • Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    I replicated it on my list and it works for me if the fields involved are actually empty. Are you sure the data cards involved are for Single line of text fields. Would you provide some screenshots?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Pstok1,

     

    Thanks for your reply, I have found the exact issue & it's rectified. Default Mode was selected to New & same formula in Initial post worked.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 742

#2
Valantis Profile Picture

Valantis 474

#3
Haque Profile Picture

Haque 358

Last 30 days Overall leaderboard