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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can i Save Attachments...
Power Apps
Answered

Can i Save Attachments in a ViewForm making editable the control of attachments?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I need to save with Patch, attachments included in a ViewForm. The form is for view data and change a State, but need to add Images that Shows -> "the problem is fixed".

This is my ViewScreen:


 Updating Media

carlabon_1-1628099517443.png

In My submit button , i need to save aditional attachments (having errors with this)

carlabon_2-1628099693299.png

Thanks in advance,

Carla

 

 

 

 

 

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    A better approach is using Edit Form but only set DisplayMode of the status and Attachments Data Cards be Edit, others set to View.

     

    Your formula need a little modification:

    OnSelect of the submit button:

    SubmitForm(DetailForm1_2);;
    Navigate(...)

     

    OnSuccess of the Edit Form:

    Switch(BrowseGallery1_1.Selected.Estado.Value;
     "Abierto";
     Patch(DataSource;
     EditForm.LastSubmit;
     ...
     );
     "Progreso";
     Patch(DataSource;
     EditForm.LastSubmit;
     ...
     )
    )

     

    Doc of Switch function for reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if#syntax

    Switch( Formula, Match1, Result1 [, Match2, Result2, ... [, DefaultResult ] ] )

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard