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 / Missing the "Item" pro...
Power Apps
Answered

Missing the "Item" property of "Edit" in power apps for Teams

(0) ShareShare
ReportReport
Posted on by 14

Hi,

I'm trying to set a current item in an Edit form on a screen in a power apps for teams app.
The form is called Form1. I didn't want to store the to-edit entry a global variable, so when I navigate to this screen it's either for a new entry or from a given Param. This is what happens in OnVisible:

If(
    IsBlank(Param("SelectedItem")),
    NewForm(Form1),
    EditForm(Form1);
    Form1.Item(Param("SelectedItem"))
    )

So Form1 is definitely of type "Edit". The error I'm getting:
'Item' is an unknown property or unsupported function in namespace 'Form1'.

The only properties I'm able to get from Form1 are AcceptFocus, Unsaved, Valid, Visible, BorderColor, BorderStyle, BorderThickness, BorderLanguage, DisplayMode, Error, ErrorKind, Fill 

Another question, could I get the Param once and store it in the context of this block only? Or is the smallest available context for storing a variable bound to the screen?
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at

    hey @Jvds 

     

    i did not fully underatand what you are trying to do here.But in my point of view its not working that way.

     

    The error arises because Form1.Item(Param("SelectedItem")) is not a valid operation. The Item property of a form should be set to the record you want to edit, but this assignment can't be done as a method call like you're attempting. Instead, you should set the Item property of the form in the properties panel to an expression that evaluates to the record you want to edit.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Jvds Profile Picture
    14 on at

    Thanks for the suggestion.

    I don't really see the point in not being able to programatically set this "Item" value from another function.

    Using your suggestion, I might be able to use this form to edit a record (and which record being the result of a function in the "Item" property. (When is this function evaluated exactly? And is this once?))
    But, I still want to be able to use this same form to be able to create a new record.

    I don't like duplicating work. It's all the same, the same screen, same layout, same buttons for saving, canceling etc.

    In the end I just want a screen with a form that's either for a new record, or for editing an existing one.
    Maybe there's another way? I just don't like duplication, and in my opinion it should be all the same stuff.

  • Verified answer
    mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at

    yes you can use the same form for either New entries or for existing ones.

     

    this video should help you solve it:

    Power Apps Form Control Tutorial - New Edit Form (youtube.com)

     

    you just have to set Newform(Form1) or Editform(Form1) on the right places to achieve what you are looking for.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Jvds Profile Picture
    14 on at

    This is great, thanks.
    So what I was missing;
    The form is reset in the other screen which navigates to this edit screen.
    Then this same screen sets the form to be new, edit or view.

    In the screen showing that one record, if it's an edit form, it looks up which one to edit in its "Item" property by using a formula that chooses the Selected item from the gallery.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard