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 / How to transfer data f...
Power Apps
Unanswered

How to transfer data from Variable or Collection to Form

(0) ShareShare
ReportReport
Posted on by 117

Good day,

 

So I have a form that has multiple data, not sure what is more appropriate if collection or variable, but I would like it to transfer to the Form text inputs/date inputs/ selected, etc.

 

How is this possible quickly? 

 

Like doing the "Edit" function, would just like to populate the data with those data from the variable or collection.

 

grapejuice_0-1636375988943.png

 

Thank you.

 

 

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

    Hi @grapejuice 

     

    Better to use Collection in this case. 

    ClearCollect(colOffline, {'Test ID': "Test",Client: "MyClient"})

    Set the DataSource property of the form to 

    colOffline

     

    Set the Item property of the form to 

    First(colOffline)

      

    Set the Default property of text control to

    ThisItem.'Test ID'

    For client

    ThisItem.Client

     
    Thanks,
    Stalin - Learn To Illuminate

  • grapejuice Profile Picture
    117 on at

    thanks for the reply

     

    i cannot set the datasource to the colOffline because it is currently connected to a sharepoint list, how do I go around that? Thanks

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    If the data source is already linked to the SP list then we can directly set the variable (colOffline) data.

     

    Set the default property of Text control (Client) to

    colOffline.Client

     

    For the Date field, Set DefaultDate

     

    colOffline.'Date of test'
  • grapejuice Profile Picture
    117 on at

    sorry but i cannot change the default as well since it is connected to "ThisItem" 

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    You need to unlock it to set custom data.

     

    • Select the card and unlock it

    StalinPonnusamy_0-1636610664911.png

    • Now you can set the default data from the collection

    I'm not sure what you are trying to do. But you may add conditions to display data whether from SP Source item or Collection like

    If(!IsBlank(ThisItem.'Issue source'),ThisItem.'Issue source', colOffline.Client)

     

    The above code checks any data from ThisItem. if not gets from the collection.

     

    Are you trying to show the data in the form of Summary before Save?

     

  • grapejuice Profile Picture
    117 on at

    I am trying a way to save the data offline first by storing it on a collection incase submit form fails due to internet issue or crash during submitting

     

    Then calling it again once opened

     

    However, i do not want it to disturb  the normal operation of submit form / edit form

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
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard