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 / Issue with Form Fields...
Power Apps
Answered

Issue with Form Fields Disappearing After Button Click

(0) ShareShare
ReportReport
Posted on by 277

Hello everyone, 

 

I have this formula in a button on my form. The form is displayed when the user clicks on a gallery record. When I press the button, what I'm actually doing is changing the status of the record. However, for some unknown reason, after pressing the button, all the form fields disappear, and instead, the message 'No item to display' is shown.

 

My goal is that after the updated record notification is displayed, the fields remain on the form and are refreshed. Currently, the only field that changes is the status, which is reflected through the button, as the button is disabled when the status changes.

 

Do you have any ideas on how to solve this challenge?

 

Thank you, 

 

Formula:

 

Patch(
    'matter engagement letters',
    varElid,
    {
        'Engagement Letter Status': 'Engagement Letter Status Choice'.'Engagement Letter saved to DMS',
        'Status Date': Today()
    }
);
Set(
    varElid,
    LookUp(
        'matter engagement letters',
        'matter engagement letter' = GUID(Param("elid"))
    )
);
Refresh('matter engagement letters');
Navigate(
    scr_Assistant,
    ScreenTransition.None
);
Notify(
    "Record has been updated",
    NotificationType.Success
)
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,481 Most Valuable Professional on at

    Hi @ADumith ,

    It is a bit hard to help you without seeing your code (in Text please), where you are using it and the current result. Also maybe a screenshot would help also.

  • ADumith Profile Picture
    277 on at

    So, sorry..

     

    You right.

     

    There you go.

  • WarrenBelz Profile Picture
    154,481 Most Valuable Professional on at

    Hi @ADumith ,

    How does Param() come into this assuming you are using a deep link and what is your data source.

  • ADumith Profile Picture
    277 on at

    Hello @WarrenBelz ,

     

    Thank you for your reply, but I'm not sure what you mean.

     

    Thank you, 

  • WarrenBelz Profile Picture
    154,481 Most Valuable Professional on at

    @ADumith ,

    You have posted this

    'matter engagement letter' = GUID(Param("elid"))

    which is referring to a deep linked parameter.

  • ADumith Profile Picture
    277 on at

    Hello, thank you for replying.

    Do you think it can be done in a better way?

    How would it be?

    Thank you,

  • WarrenBelz Profile Picture
    154,481 Most Valuable Professional on at

    @ADumith ,

    I need to understand why you are using this code.

    GUID(Param("elid"))

     

  • Verified answer
    ADumith Profile Picture
    277 on at

    Hello WarrenBelz

     

    Sorry for the delay.

     

    I was able to fixed changing the code for this:

     

    varElid.'matter engagement letter' = 'matter engagement letter'

    The problem was that using the deep parameter for some reason I lose the id, so the only way to fix it was re-assigning the value.

     

    Thank you, 

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard