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 / Connect Form Control t...
Power Apps
Answered

Connect Form Control to Gallery Control in PowerApps

(0) ShareShare
ReportReport
Posted on by 428

Hi Experts,

Hope you guys could help me out in figuring out the issue...

JatinSaini_0-1661757719579.png

I have a SP List whose Form is converted into an App (above pic).

 

The Left Side is the Gallery with items of every record present in the form (displayed in form of cards).

The Right Side is the Form Control itself (by default in Edit Mode). The Form Fields are segregated into different Tabs.

 

Intention is to display the selected record values (left side gallery) to the form control (right side).

For this, on the Items Property of the Form Control, I have given - 'Gallery1.selected'

 

Now, all the values are getting displayed in the right side form fields axcept the top most field which is a Source Field in form of checkboxes.

Source Column in the SP List is a multi-select choices field and I am displaying it's selected values in form of Icons (Phone,Email,Chat,Support,Print).

The same Source field values are getting retrieved from a collection which is storing them via selected checkboxes in right side of form control.

Collection name is - 'colSourceData'

OnCheck = Collect(colSourceData,ThisItem)

OnUncheck = Remove(colSourceData,ThisItem)

 

The thing which I was doing is that I have putted below code in the onvisible property of the Screen:

If(Form.Mode <> FormMode.New, Collect(colSourceData,Gallery1.Selected.Source))

 

But Unfortunaltely I am not getting the checkboxes checked as per the selected item from the left gallery.

PLEASE HELP

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @JatinSaini ,

     

    The formula OnVisible of the screen will be fired when the screen is showing up. However, if there is nothing set in Default property of the Gallery, nothing will be selected and the collection will be empty. So if you would like to get corresponding Source from the Gallery selected item, please try below:

     

    OnSelect of the Gallery:

    Select(Parent);ClearCollect(colSourceData,ThisItem.Source.Value) 

    Default of Source Data Card:

    If(Form.Mode <> FormMode.New,colSourceData,Blank())

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard