Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Data Properties Variable



I'm trying to put a condition to the edit page of my form where in if two or more items (using checkbox) has been selected, the DefaultSelectedItem should be Empty, and if only a single item is chosen, it would populate the edit page with the items current attiributes.


However this code i'm using does not seem to work.




CountRows(selected) > 1,UpdateContext({defaultsuggested:""}),




I tried removing the quote on the Parent.Default but it still does not work.



Resolver II
Resolver II



where do you have your code snippet?

Dual Super User II
Dual Super User II

Hi @CarloPrincipe 


Parent.Default is not a tring variable and it only works in the context of an element having a parent


What you could do is this

CountRows(selected) > 1,UpdateContext({defaultsuggested:""}),





and then in default selected items property 

use If(defaultsuggested = "parent",Parent.Default,defaultsuggested)



Reza Dorrani


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Hi @RezaDorrani ,


I did what you suggested, but unfortunately I got an error on the data proerties of the field.



Error on data properties.PNG

Hi @CarloPrincipe 


For testing, add a label and specify its text property as defaultsuggested 

Juts to check what value is present in defaultsuggested 



Hi @RezaDorrani 


As expected, It shows the "parent" when only a single checkbox is checked, but applies "" when multiple items are selected.



Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,489)