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 / Set the item property ...
Power Apps
Unanswered

Set the item property of form with defaults function and a variable

(0) ShareShare
ReportReport
Posted on by 40

Hi,

 

Originally the item property of my form is = varRecord; and it's used for the gallery to link to the form. However, since I have split my form, I need to set the item property of that form with Defaults('DemandForm');

 

I tried to set the item property as varRecord; Defaults('DemandForm'); but there is an error. I would like to ask how to accommodate them if i need to keep both of them in the item property.

 

Thank you.

Categories:
  • R Bakker Profile Picture
    725 on at

    I may have miss interpreted the question, but could you not have both forms with the Item property of varRecord and then choose which fields you want to keep in each form?

  • thgtang Profile Picture
    40 on at

    my screen flow

    Gallery --> Screen1 (form page 1) --> Screen 2 (form page 2)...etc

    I think varRecord must be kept as it needs to show the details of the record selected in gallery. But at the same time, i also need to use defaults to temporary keep the form data.... so i think i need to keep both but i have no idea how to do it.

     

    Thank you.

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @thgtang ,

    You do not need Defaults() unless the form is in New mode and then Power Apps does this for you automatically. varRecord (which I assume you have set when selecting the record from the gallery) will work in both View and Edit modes.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard