Hello All,
I just saw a YT video where the author had a '+' icon on the screen and an attachment control (stripped off of a PowerApps Form ) together in a Group BUT on the Page when he runs the app, the attachment control is nowhere to be seen and he clicks on the + icon instead (and not on the 'attachment control icon') to upload files to SharePoint. I paused his video at one point and noticed that the Visible was set to On on the attachment control as well.
I am trying to simulate exactly that behavior on my screen and I tried pretty much everything and brought everything to front, set things to Transparent and tried Select(Attachment control) etc. BUT I just am not able to simulate that behavior.
Can you please let me know and give me ideas how one would simulate an attachment control's behavior on an Icon click?
Thanks
Solved! Go to Solution.
I was able to figure it out finally. The key was to Reset the Attachment control the minute you add the file to the collection. That way you don't get to see the scroll bars and you don't get to see the file names attached. Also, blank out all text default values of the attachment control. Set Borders to 0 and set the BG color to ScreenBGColor. Put the icon on Top of the attachment control and works just like as if you clicked on the + sign to upload the files.
Again, this attachment control is the one that you pluck out of a form.
I was able to figure it out finally. The key was to Reset the Attachment control the minute you add the file to the collection. That way you don't get to see the scroll bars and you don't get to see the file names attached. Also, blank out all text default values of the attachment control. Set Borders to 0 and set the BG color to ScreenBGColor. Put the icon on Top of the attachment control and works just like as if you clicked on the + sign to upload the files.
Again, this attachment control is the one that you pluck out of a form.
I've stripped everything, but I still see the paper clip. Anything to add for that?
I got it too -- thanks! You also have to pay attention to the order of the items as they are displayed. So the icon goes behind the attach control.