cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gj84uw
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
RandyHayes
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
RandyHayes
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (94,509)