web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : Eu0AVLfbjhr+SaSh0oMXoL
Power Apps - Building Power Apps
Unanswered

Default field from collection to newform

Like (0) ShareShare
ReportReport
Posted on 6 Apr 2020 11:58:19 by 22

Hi,

 

I have 2 sharepoint lists:

 

1) Tasks - where I store all tasks

2) Time register - where i register time I spent for tasks

 

I have a button that allows me to open new form of Time register(2) list from Task list (1)

EditForm(Time_register);;Navigate(time_reg; ScreenTransition.None);;ClearCollect(Dane; {ID: ThisItem.Identyfikator};{temat: ThisItem.'Nazwa zadania'})

 

As you can see I'm collecting 2 things from the task list: ID and topic. I would like to have these 2 filled in my just opened EditForm(Time_register) so I don't have to remember it.  But I can't set default values from collection. 

 

Could you please help me with that?

 

Best regards,

 

jeyjey

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 06 Apr 2020 at 12:25:33
    Re: Default field from collection to newform

    Can you set the default to First(collection).ID and First(collection).Topic?

  • jeyjey344 Profile Picture
    22 on 06 Apr 2020 at 12:55:48
    Re: Default field from collection to newform

    Thanks, that solved the problem of topic. (I was trying to use First(collection.topic).. my bad)

     

    ID field is a dropdown list - and when I try tos et it defoult as: First(collection).ID it says:  "expected record value"

  • Community Power Platform Member Profile Picture
    on 06 Apr 2020 at 13:00:05
    Re: Default field from collection to newform

    It that case could you set the default to dropdown.selected.ID?

  • jeyjey344 Profile Picture
    22 on 06 Apr 2020 at 13:39:44
    Re: Default field from collection to newform

    Hi,

     

    Turned out it is combo field.

     

    And there is a "DefaultSelectedItem" - that should be used instead of "Default" 

     

    I managed to find DefaultSelectedItems - and set it to First(data).ID. 

     

    But then it said: Expected table value. So I created this weird "1 record table":

     

    Table({Value:First(Dane).ID})

     

    And now it works fine! 🙂 Thanks for your time!

     

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard
Loading complete