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 / Attachment control to ...
Power Apps
Unanswered

Attachment control to be a requirement on powerapps screen

(0) ShareShare
ReportReport
Posted on by 212

I have an attachment control in Powerapps. The way I got the attachment control onto the screen is by adding a form temporarily and and copying the attachment control. Once Pasted to the screen, I removed the Form.

 

Currently, on submit (onselect property) I am able to update a sharepoint list using the patch function and powerautomate to save the attachments to a library.

 

I want enforce a check to make a attachment required on submit. Any suggestions?

 

Here is my current code on the submit button : 

 

 

Set(
recID,
Patch(AccessPersonslist, Defaults(AccessPersonslist),
{
Title:User().FullName,
Q1:Radio1.Selected.Value,
Q2:Radio2.Selected.Value,
Q3:Radio3.Selected.Value,
Q4:Radio4.Selected.Value,
Q5:Radio5.Selected.Value
}
).ID
);

ForAll(Attach.Attachments, PowerappsUploadStatementstoLib.Run(recID,
{
file: {
contentBytes: Value,
name: Name
}
}
)
); Navigate(Finish_screen,ScreenTransition.Fade)

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @mthiru_0023 ,

     

    Not sure what you want to do with this check, but you can use the below condition to trigger it:

     

    IsEmpty(Attach.Attachments)

    This will return true if there are no attachments.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard