cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gj84uw
Advocate II
Advocate II

Visible rule based on multi-select choice field

I have a multi-select choice field on a customised SharePoint list form and I want to disply a message if a user selects any option from this choice field.  Basically, if the chouce field isn't blank then I want the message to be displayed.  The code set on the Visible property for the message label card is as follows:

 

Not(IsEmpty(DataCardValue17.SelectedItems.Value))

 

The thing I'm confused about is that this works fine if the form is in Edit mode.  However, if it's in New mode then the message displays straight away even when the choice field is blank.  I can't work out why this would be so any pointers as to what could be causing this would be very welcome?

 

Thanks in advance for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@gj84uw 

Consider changing your formula to the following to see if it is more helpful for you:

(CountRows(DataCardValue17.SelectedItems) >0 )

This will return true for your Visible property if there is anything selected.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@gj84uw 

Consider changing your formula to the following to see if it is more helpful for you:

(CountRows(DataCardValue17.SelectedItems) >0 )

This will return true for your Visible property if there is anything selected.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,102)