web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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,505 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard