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 / Updating Fields on an App
Power Apps
Unanswered

Updating Fields on an App

(0) ShareShare
ReportReport
Posted on by 14

Hi Everyone,

I am trying to build an interactive tank management app. It simply just showcases a tank farm with the tank details (Tank Number, Product in Tank and whether it is Full or Empty) see attached file Tank1.

 

What i would like to do is just using this one screen have the ability to update the tank status's (Tank Number, Product in Tank and whether it is Full or Empty) .

 

Although it only works if I set the form to new, then once the details are all entered in it disappears. I do not want to add a new item but rather update the existing one.  

 

Also how do i default the product dop box and toggle switch to be linked to that tank number (which is the ID on SharePoint).

Thank you,

Tank1.JPG
Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @gman91 ,
     
    Could you share me a bit more about your issue?
    Which control do you use to update your tank details? the form control or Gallery control ?
    Do you want to change the tank status(Full or Empty) after you select the product from DropDown?

    I have made test on my side with SP list(Tankdetail), and two workarounds of gallery and Form are list.

     

    Use Gallery:

    You can use gallery to get what you want much conveniently. Add Label, Drop down list and Toggle into the gallery.
    Use Update If function to set OnChange property of toggle switch in gallery, so that you can easily show and change the existing Status. Meanwhile your link question is also solved.

    Please refer to following formula:

    • Set the TrueText property of the Toggle to “Full”
    • Set the FalseText property of the Toggle to “Empty”
    • set OnChange property of Toggle switch(Status):
    If(Toggle.Value=true,UpdateIf(tankdetail,TankNumber=ThisItem.TankNumber,{status:Toggle.TrueText}),UpdateIf(tankdetail,TankNumber=ThisItem.TankNumber,{status:Toggle.FalseText}))

     

    Use Form:

    The difference with gallery is you need two EditForm and set item to corresponding record. Other settings are similar to gallery(set onchange property). Please refer to the above formula.

     

    Let me know if you don’t come right.

     

    Best Regards,

    Sik

  • gman91 Profile Picture
    14 on at

    @v-siky-msft 

     

    What my goal is to have the ability to update the following details per tank as per my photo attached in the first post.  I want to be able to do this in one page rather than flicking between screens. But also having it interactive so users have an easy and pleasant experience.

     

    The factor that updates the details to SP has to be the toggle swtich on change. So once changed from empty to full the SP item is updated with the variety, filled status and time stamp of when this occured. Once changed from full to empty, to default the variety column to select one and also update the SP list item (Tank ID).

    The app once opened must always reflect to the current status and details of the tank on the SP list.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard