cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Santosh2803
New Member

Disable Submit Button if Datacard value is Nil

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.

10 REPLIES 10
Pstork1
Dual Super User
Dual Super User

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 '&&'.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Using the below formula it didnt work

 

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

 

Note:- Default=Parent.default for the datacardvalue

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Santosh2803
New Member

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

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?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,029)