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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / When creating af form ...
Power Apps
Answered

When creating af form and connecting it to a collection, no fields show up, and I can't add anything but custom data cards. Screenshots attached.

(0) ShareShare
ReportReport
Posted on by

My app is connected to a custom data source. I collect data from this source into collections. 

 

It works fine to build a gallery from these collections, but if I try to create a form from them, I don't get a form with the fields from the chosen datasource (collection). After connecting to the data source (a collection), no fields are suggested automatically and the "add field" is greyed out.

 

To make it as basic at possible, I've created a new screen, using the built-in form as template, and I've taken a few screenshots that will explain better, I believe. 

 

Please take a look: 

 

This collection will show in a gallery: 

Jake73_0-1619978846815.png

But when trying to connect from af form: 

 

Jake73_1-1619978926571.png

I even tried to fill in the Item property under Advanced with "Defaults(ProductCollection)" 

 

Jake73_2-1619979078125.png

 

Thankful for any help! 

 

PS - I searched a lot, and one suggestion was to see if I could build this from scratch, using the wizard. However, since the data is collected from a custom data source into collections, this approach doesn't work for me. 

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Create the form from the original data source.  That will generate the cards.  Then switch the data source to the collection.  The cards will remain, but they will be tied to the collection instead of the original data source.

  • Community Power Platform Member Profile Picture
    on at

    Thanks, but the original datasource is a custom one presented via an API that takes arguments to build any data. This is why the original data are stored in collections. If I try to select the custom data source, the selector will just jump back to "none".

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Even though + Add Field is disabled you can still add a custom card to the form, add an appropriate control to the form, and then bind the card to the collection property.  If there is no data source available to generate the form then that's about the only way.

  • Community Power Platform Member Profile Picture
    on at

    Thanks a lot, I saw that option (to add a custom data card).

     

    Even though I haven't explored how to bind a datacard to a collection, I'd like to ask - when I can build a gallery from my collection, shouldn't I also be able to build a form from the same collection? 

     

    The reason I ask is, that it's a lot of forms, I will have to build manually.

     

    If this isn't the case, I'll follow your advice, and build all my forms manually (still have to figure out how to bind a custom data card to a collection, a hint or link would be appreciated).

     

    FYI - Being on CET, it's getting quite late. I'll try your advice tomorrow, given there is really no other way. 

    Thanks a lot for your advice so far. 

  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    I don't know why it works with a Gallery and not a form.  I think it might be because the data source has an actual schema associated with it, but the collection doesn't.  Fields in the collection have specific data types, but the collection itself doesn't have a defined schema.  So the form can't pick up the data types from the collection as easily as it can from the data source.  But that's just a theory. I just know that I've never gotten it to work unless I patterned it off an existing data source.

     

    To bind the data card just add an appropriate control, like a text box, to the data card and set the DataField property of the data card.

  • Community Power Platform Member Profile Picture
    on at

    I found out that Powerapps does not support collections as a datasource in forms, i.e. you can use their data, but you have to make custom data cards like you suggested. Since the form then serves no purpose for me, (not facilitating the layout of an edit record/new record page), I will stick to a screen with fields that references the values in the different collections. 

     

    Thanks a lot for your tips and leading me on the right path. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard