cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to get Default Selected Gallery Item into DatacardValue of EditForm

In Screen1, I am having PrimaryContactGallery and SecondaryContactGallery respectively. Where in PrimaryContactGallery, List of Primary Contacts is shown and in SecondaryContactGallery, List of Secondary Contacts is shown.

In Screen2, I am Having EditForm1 where Contact DatacardValue Default Property: If(NextArrow1.OnSelect = true,  PrimaryContactGallery.Selected.'Contact', SecondaryContactGallery.Selected.'Contact'), Where NextArrow1 is the Arrow Icon in PrimaryContactGallery.

I am getting error at "NextArrow1.OnSelect = true" Logical Condition in If().

 

Can anyone help me how get default selected contact in EditForm1 from PrimaryContactGallery or SecondaryContactGallery

When NextArrow1 is selected, then Primary Contact must be Shown.

When NextArrow2(Arrow Icon in SecondaryContactGallery) is Selected, then Secondary Contact must be shown in Contact Datacardvalue.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Visitor

Re: How to get Default Selected Gallery Item into DatacardValue of EditForm

@Chandu 
Create a variable, lets say Set(varContact,""); 

When NextArrow1 is selected, then set its on-select property to Set(varContact,PrimaryContactGallery.Selected.'Contact'); 

When NextArrow2(Arrow Icon in SecondaryContactGallery) is Selected, then set its on-select property to Set(varContact,SecondaryContactGallery.Selected.'Contact'); 
In the DataCard default value set value as varContact.
Hope it helps.

 

View solution in original post

1 REPLY 1
Highlighted
Regular Visitor

Re: How to get Default Selected Gallery Item into DatacardValue of EditForm

@Chandu 
Create a variable, lets say Set(varContact,""); 

When NextArrow1 is selected, then set its on-select property to Set(varContact,PrimaryContactGallery.Selected.'Contact'); 

When NextArrow2(Arrow Icon in SecondaryContactGallery) is Selected, then set its on-select property to Set(varContact,SecondaryContactGallery.Selected.'Contact'); 
In the DataCard default value set value as varContact.
Hope it helps.

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,984)