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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to update fields a...
Power Apps
Answered

How to update fields automatically upon submit form

(0) ShareShare
ReportReport
Posted on by 6

OK.....Let me preface this by saying that I'm very green when it comes to power apps.  I've recently built my first app but I'm having trouble with 2 items.  My data source is an excel file on my onedrive.  It has 6 columns "assetnum", "description", "location", "status", status message, and "status date".  I do not use the app to add new records I only use it to update existing records.  The only columns that the user will be able to edit are the "status" and the ""Status Message" column.   The "status" is a dropdown with only 2 items available "Operating" or "Down".  The user will change the status using the dropdown, then type a message in the multiline text field "status message"  then the user will click on the "submit form" button (on select - submitform(editform1)

 

Request #1

1).   When the user submits the form I want the "status date" to automatically update with the current date and time.

 

Request #2

2.)  If the user changes the status to "Operating" and submits the form,  I want the app to automatically update the status message to "Good"

 

Is this possible?  Believe it or not but I've scoured these boards for hours trying to find a solution to no avail.   I know that I should probably not be using an excel file as my database but this file is linked to another query and that's why I chose to use it. Any insight will be much appreciated,  thanks for your time!

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @tlpatterson 

    #1

    • Unlock the card containing the Status Date.
    • Click on the card (not the control inside)
    • Delete the text in the Update property of the card.
    • Replace it with: Today()
    • You can hide the card.  It will automatically update to the date the form is submitted.

    #2

    • Unlock the card for Status Message
    • Click on the card itself and select the Update property
    • Assuming the status dropdown control is called ddStatus, if not change its name
    • The Update property of the Status Message card probably contains something like DataCardValue11.Text
      • the number may vary but replace the number in my formula with the actual DataCardValue number in your card
      • If(ddStatus.Selected.Value="Operating","Good",DataCardValue11.Text)

    The take-away message from this exercise is that the only important fact regarding what is saved when a form is submitted is the Update property of the card.  Everything else is just bells and whistles. 

  • tlpatterson Profile Picture
    6 on at

    Thank @Drrickryp........

     

    #2 is solved!

     

    #1 is still giving me problems.......Unfortunately, there's no "update" field on the "status date" card

  • tlpatterson Profile Picture
    6 on at

    OK....I think I found out why......I deleted the card then re added it.......I set the card to "edit" instead of "view".....then the "update" property showed up!   Much Thanks Again for your help!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard