cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper 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
Super User III
Super User III

@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.
Check out my PowerApps Videos too!

View solution in original post

1 REPLY 1
Super User III
Super User III

@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.
Check out my PowerApps Videos too!

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (27,799)