Forum Discussion

omergunduz's avatar
omergunduz
Copper Contributor
Aug 26, 2024
Solved

Making Attachments Mandatory for List Items on Power Apps

Hello,   I am trying to make newly added list items with attachments mandatory and have written the following formula for a customized Power Apps form.     However, when I attempt to use t...
  • michalkornet's avatar
    Aug 28, 2024

    Hi omergunduz, I have checked it on my environment and it looks like this code is working.

    I use a comma as a parameter separator in my language.

    If(
        IsEmpty(DataCardValue2.Attachments),
        Notify("Please fill out the attachment field.", NotificationType.Error),
        SubmitForm(SharePointForm1)
    )
     

    It shows this error when attachments are empty. Otherwise, it saves the form.

     

Resources