cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Kingpin
Kudo Kingpin

Items property is grayed out when using action within a rule

I'm trying to create a people picker that consists of the Text box and a List box.

 

 

The rule should go something like this:

If TextBox.Text is not blank

then

Action: Items = ["Whatver"]

 

The issue is that Items property is always grayed out when I'm trying to define the aciton. Does anyone know how to change the Items Property when using actions? I've tried to create the rule both against the text box and the list box and it hasn't made any difference. 

 

Any suggestions or comments will be greatly appreciated!

 

PowerApps.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Items property is grayed out when using action within a rule

Thanks for posting this.

 

The limitation for the rules in PowerApps is documented as below with only one restriction:

"

As of this writing on 11/10/2017:

  • You can't specify the ThisItem property of a form or a gallery as part of a condition.

"

Also the blog didn't mention any limits when working with the rules.

 

Per my understanding, the actions that could be defined within the rules should be the control property that will not affect the actual data (or saying the source data).

 

I will collect this as a content request.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Super User
Super User

Re: Items property is grayed out when using action within a rule

Do you have to use a rule? If you don't then you could just write an If() in the Items property of the List control to accomplish the same thing.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Items property is grayed out when using action within a rule

I generally don't use rules, but decied to try to create a people picker using them. I was following a blog post where it definitely worked for the author. The "Items" property was not  grayed out. I have some workarounds, but would be nice if it just worked or if we had a some explanation as to why this is not working. 

 

If we start using rules, it would be nice to know if there are some limitations like these so that we don't waste hours to figure out what's wrong next time.

Highlighted
Community Support
Community Support

Re: Items property is grayed out when using action within a rule

Thanks for posting this.

 

The limitation for the rules in PowerApps is documented as below with only one restriction:

"

As of this writing on 11/10/2017:

  • You can't specify the ThisItem property of a form or a gallery as part of a condition.

"

Also the blog didn't mention any limits when working with the rules.

 

Per my understanding, the actions that could be defined within the rules should be the control property that will not affect the actual data (or saying the source data).

 

I will collect this as a content request.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Items property is grayed out when using action within a rule

<Removed>

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Items property is grayed out when using action within a rule

Thank you, @v-micsh-msft. That is an excellent explanation.

 

So we cannot use rules to control data bound to the controls. So no ThisItem, Items, etc.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,236)