cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SalTJX10182018
Level: Powered On

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
SalTJX10182018
Level: Powered On

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
Community Support Team
Community Support Team

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.
SalTJX10182018
Level: Powered On

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

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

SalTJX10182018
Level: Powered On

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

Arpitha
Level: Powered On

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

awaisarif8
Level: Power Up

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,014)