cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Attachment Control in Edit Form with limit to 1 file

Hi,

I'm trying to use attachment control (required to limit to 1 file) inside the Add\Edit Forms, in the Add Form its working just fine as the attachment is "Unsave" and I can remove to add different file But when I'm in Edit Form and hit Remove file, it gray out the file and display Undo remove instead of letting me add different file, as I have to limit the attachment control to "1" file, its taking that as a file attached already and not display Add Attachment option. Please advice.

 

Thanks,

-Sal

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Attachment Control in Edit Form with limit to 1 file

I created a workaround to this for now using variable in selected Edit Item to store Attached file Info and tie with attachment control in Edit Form and set OnRemovefile on that attachment control to update that variable to empty table so that now its displaying Attach file instead of UndoRemove File and I'm able to see attach file.

View solution in original post

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: Attachment Control in Edit Form with limit to 1 file

Hi @SalTJX10182018,

 

In this Edit Form, select the attachment control and check its MaxAttachments property (The maximum number of files the control will accept). See if it is set to 1. You could change the number and test again.

Capture.JPG

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Attachment Control in Edit Form with limit to 1 file

I had to set MaxAttachment to 1. Please read my question again. 

Highlighted
Helper I
Helper I

Re: Attachment Control in Edit Form with limit to 1 file

I created a workaround to this for now using variable in selected Edit Item to store Attached file Info and tie with attachment control in Edit Form and set OnRemovefile on that attachment control to update that variable to empty table so that now its displaying Attach file instead of UndoRemove File and I'm able to see attach file.

View solution in original post

Highlighted
Regular Visitor

Re: Attachment Control in Edit Form with limit to 1 file

Hello @SalTJX10182018 ,

I am facing the same issue in my powerapp with max attachment count 3, Could you please elaborate on your workaround.

Thank you in advance

Highlighted
New Member

Re: Attachment Control in Edit Form with limit to 1 file

@SalTJX10182018 can you please provide some details. I am stuck at the same stage.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,088)