cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Danny_L
Helper III
Helper III

Submit button visible based on if a card is visible and empty

I have a canvas app that has an edit form and I have made a field visible based on certain conditions. I wanted to see if there was a way to have my submit button be conditional to where if the field is visible and empty, to not show the button.

 

Here is the breakdown:

 

 

 

Repaired Work Order Number field - (DataCardValue8)

Serial Number work order field- (DataCardValue34)

Top Assembly Serial Number Card - (TopAssemblySerialNumber_DataCard1) -  The Visible property on this is: If(DataCardValue8.Text = DataCardValue34.Text, false, true)

Top Assembly Serial Number field - (DataCardValue3)

 

I want the Submit button to be invisible if TopAssemblySerialNumber_DataCard1 is visible and (DataCardValue3) is empty. I want the end user to have to input information into the Top Assembly Serial Number field if it is visible. 

 

Can this be done??

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Danny_L 

Set the visible property on the Button to:

    !TopAssemblySerialNumber_DataCard1.Visible && !IsBlank(DataCardValue3.Text)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

4 REPLIES 4
Drrickryp
Super User
Super User

@Danny_L 

What he said!

 

 

 

 

RandyHayes
Super User
Super User

@Danny_L 

Set the visible property on the Button to:

    !TopAssemblySerialNumber_DataCard1.Visible && !IsBlank(DataCardValue3.Text)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thanks Randy! I'm getting better. I had that formula but was missing the ! in front.

 

Thanks again

RandyHayes
Super User
Super User

@Danny_L 

I like to hear of improvement!  

 

@Drrickryp  Cigars for all!!

RandyHayes_0-1614292778314.jpeg

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,573)