cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
neill_long
Helper V
Helper V

Combo Box Populate Textbox

Hi

 

I have a text input field that automatically populates with text if the user selects an option or options from a combo box.  the formula i have used on the Default of the text input is:

 

If(IsBlank(DataCardValue4.SelectedItems),"","Learning and Digital Resources")

 

This works great if an option is selected, however, if the user changes their mind and unselects all the items in the combo box to leave it empty, i want the text in the text input to be deleted as well.  This however doesn't happen.  the text remains.

 

Is there something i should be adding to my formula to tell it to remove the text if options in combo is removed?

 

thanks in advance

Alistair

2 ACCEPTED SOLUTIONS

Accepted Solutions
neill_long
Helper V
Helper V

My error, sorted it.  Changed IsBlank to IsEmpty and it now works as it should.

View solution in original post

zmansuri
Super User
Super User

Use this instead:

If(IsEmpty(DataCardValue4.SelectedItems),"","Learning and Digital Resources")

View solution in original post

6 REPLIES 6
neill_long
Helper V
Helper V

My error, sorted it.  Changed IsBlank to IsEmpty and it now works as it should.

View solution in original post

zmansuri
Super User
Super User

Use this instead:

If(IsEmpty(DataCardValue4.SelectedItems),"","Learning and Digital Resources")

View solution in original post

yeah thanks realised my mistake and sorted it

Glad it worked

Nogueira1306
Community Champion
Community Champion

Hey! I have an idea. Instead of "IsBlanck()" use "IsEmpty()"

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

eka24
Super User
Super User

Consider this:

If(IsEmpty(DataCardValue4.SelectedItems),"","Learning and Digital Resources")
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,667)