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 / Submit Form and ThisIt...
Power Apps
Unanswered

Submit Form and ThisItem doesn't update

(0) ShareShare
ReportReport
Posted on by 189

I have a canvas app, very basic run off a SP list, when I submit the form I stay on the form page and the SP list is updated but "ThisItem.XXXX.Value"  will not get updated. I have some logic for thisitem but that logic doesn't get updated as thisItem seems to stay on the value from when the form loaded.  

 

Any suggestions on refreshing it?

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @CiaranCampbell,

    More details are needed about  "ThisItem.XXXX.Value"  will not get updated.

    Which control and which property you set for this  "ThisItem.XXXX.Value"

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @CiaranCampbell 
    Are referring a lookup column or Choice field? if in that case check your Update of the Data Card, check what you have and make sure the datacardvalue name you should have something like this DataCardValue.Selected

  • senna Profile Picture
    189 on at

    Thank you @Ramole & @v-qiaqi-msft 

    Here is an example, its a choice field in SP list called Status, for test here i have a label in the field that shows what the ThisItem.status.Value is.

    1. When I open form it is New Application;

    CiaranCampbell_0-1714644910344.png

    2. In the DefaultSelectedItems for this dropdown i have some logic like;

    If(
         DataCardValue39.Selected.Value="Yes",
            LookUp(
                Choices([@myList].status),
                Value = "Equipment Ordered"
            )
    )
    3.  I change "DataCardValue39.Selected.Value" to be Yes and click button with SubmitForm(MyForm) on select
    CiaranCampbell_1-1714645173620.png
    4. My SP List is now has correct Status 
    CiaranCampbell_2-1714645298071.png

    5. The value for "ThisItem.status.Value" still stays at New Application;

    CiaranCampbell_3-1714645336955.png

    This is update for my card, it is correct because my list is correct

    CiaranCampbell_4-1714645512571.png

     

    I need the form to be refreshed in some way but do not want to have the user navigate away and back to form again

     

     

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @CiaranCampbell,

    I think you could set the following formula for the OnSuccess property of the edit form:

    ResetForm(FormName)

    Remember to set the DefaultMode of your form as Edit.

  • senna Profile Picture
    189 on at

    Thank you @v-qiaqi-msft  but resetForm does not update the value of ThisItem.status.Value

  • v-qiaqi@microsoft.com Profile Picture
    on at

    HI @CiaranCampbell,

    Well, you need to check how you set the Item property of your edit form.

    You could retrieve the latest status value by the formula you set for the Item property of your edit form.

     

    if you set the property of your edit form as Gallery.Selected, then you could set the Label text property with:

    Gallery.Selected.Status.Value

     

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard