cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daroot
Resolver I
Resolver I

Empty Attachments

Hi All,

I got stucked to disable save button if attachments empty on the submit form. What I did is on button DisplayMode = If(IsBlank(AttachmentCard.Text))

Anyone knew how to achieved this, my Attachments is the default SPLists attachment field.

Thanks
1 ACCEPTED SOLUTION

Accepted Solutions
daroot
Resolver I
Resolver I

Solved! Using the IsEmpty instead.

View solution in original post

4 REPLIES 4
daroot
Resolver I
Resolver I

Solved! Using the IsEmpty instead.
Anonymous
Not applicable

Hi, I am trying to disable a send button when the attachment is empty. I tried using IsEmpty but it doesn't seem to work. Button's DisplayMode: If(IsEmpty(Attachments_here.Text))   Any suggestions?

b146357
Frequent Visitor

try this: If(IsEmpty(DataCardValue10.Attachment), Disabled, Edit)

djuarez1988
Regular Visitor

This Works:

If( IsEmpty(Attachment_DC.Attachments), DisplayMode.Edit, DisplayMode.Disabled )

 

The Caveat is that the button has to be in the same data card or form. Items outside of the form cannot see the data inside the form for some reason.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,865)