cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gj84uw
Level: Powered On

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
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
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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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