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 / create a collection of...
Power Apps
Unanswered

create a collection of forms

(0) ShareShare
ReportReport
Posted on by 12

I would like to create a button, that can flexible submit a couple of forms.

Like:

 

ForAll(CurrentForms,SubmitForm(Value))

 

Where CurrentForms supposed to be a collection of Form objects.

What I cannot figure out, how to create this collection.

It turns out that while I can create collections of other objects, the standard approach does not work with forms:

 

ClearCollect(test, ["",""]); //OK

ClearCollect(screens, [Screen1, Screen2]); // OK

ClearCollect(forms, [Form1,Form2]); //Not OK

ClearCollect(forms, [Form1,Form1]); //OK: I can put the same form to the array

ClearCollect(inputbox, [TextInput1, TextInput2]); //OK

ClearCollect (objTest, {ID:1, Name: "A"},{ID:2, Name: "2"}); // OK

ClearCollect (objForms, {ID:1, Name: "A", Form: Form1},{ID:2, Name: "2", Form: Form2}) //Not OK

 

I tried with screens and text boxes, they work fine, but as long as I put 2 different forms to the collection, the function fails with type error.

 

 

 

 

 

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

    Hi @vlm_mv To the best of my knowledge this will not work. You will get an "the given types are incompatible" error. 

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard