cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Super User
Super User

Re: Visible rule based on multi-select choice field

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Visible rule based on multi-select choice field

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response 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 (10,450)