web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo Box Value Doesn'...
Power Apps
Answered

Combo Box Value Doesn't go Blank when you remove a name

(0) ShareShare
ReportReport
Posted on by 378

Current Patch Code is:

f(
!IsBlank(ComboBox13.Selected.Mail),
{
Name1: {
Claims: Concatenate(
"i:0#.f|membership|",
ComboBox13.Selected.Mail// Person email
),
Department: "",
DisplayName: "",
Email: "",
// Person email
JobTitle: "",
Picture: ""
}
}
),

 

It Patches perfect but if I remove the value(name) and click Patch, the value stays the same.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @olsen9 

    Change the following:

    {
     Name1:
     If(IsBlank(ComboBox13.Selected.Mail), Blank(),
     {Claims: "i:0#.f|membership|" & Lower(ComboBox13.Selected.Mail),
     Department: "",
     DisplayName: "",
     Email: ComboBox13.Selected.Mail,
     JobTitle: "",
     Picture: ""
     }
    }

     

    Make sure you also have the "Formula Level Error Management" feature turned on or it will not write the blank.

     

    I hope this is helpful for you.

  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @olsen9 ,

    Turn on Formula Level Error Management in Settings

    WarrenBelz_0-1663021739447.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • olsen9 Profile Picture
    378 on at

    Yes, all that is on, still doesn't take:

     

    If(
    IsBlank(ComboBox13.Selected.Mail),Blank(),
    {
    Name1:
    {Claims: "i:0#.f|membership|" & Lower(ComboBox13.Selected.Mail),
    Department: "",
    DisplayName: "",
    Email: ComboBox13.Selected.Mail,
    JobTitle: "",
    Picture: ""
    }
    }
    ),
    If(
    !IsBlank(ComboBox13_1.Selected.Mail),
    {
    Name2: {
    Claims: Concatenate(
    "i:0#.f|membership|",
    ComboBox13_1.Selected.Mail// Person email
    ),
    Department: "",
    DisplayName: "",
    Email: "",
    // Person email
    JobTitle: "",
    Picture: ""
    }
    }
    ),

  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @olsen9 ,

    Not sure who you are responding to here (I just noticed @RandyHayes posted just before me). Adding to his response

    If(
     Len(ComboBox13.Selected.Mail) = 0,
     {
     Name1:
     {
     Claims: "",
     Department: "",
     DisplayName: "",
     Email: "",
     JobTitle: "",
     Picture: ""
     }
     }
    )
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @olsen9 

    Your If is in the wrong place from what I sent you.

     

    And, you still need to actually send a Blank to the list.

     {
     Name1:
     If(
     IsBlank(ComboBox13.Selected.Mail),Blank(),
     {Claims: "i:0#.f|membership|" & Lower(ComboBox13.Selected.Mail),
     Department: "",
     DisplayName: "",
     Email: ComboBox13.Selected.Mail,
     JobTitle: "",
     Picture: ""
     }
     }
    ),
     {
     Name2: 
     If(IsBlank(ComboBox13_1.Selected.Mail), Blank(),
     {Claims: "i:0#.f|membership|" & Lower(ComboBox13_1.Selected.Mail),
     Department: "",
     DisplayName: "",
     Email: "",
     JobTitle: "",
     Picture: ""
     }
     }
    ),

     

    Your formula is just a fragment of your entire formula, so it is hard to tell what else you might be doing and what the problem might be.  But the above is the construct of what you need.

    Ideally this would all be done from your comboboxes, but you can do it in this formula as well.

  • olsen9 Profile Picture
    378 on at

    Thanks, 

     

    Everything works unless I go back into the form to clear out the name.  The name still sticks.  I hope that helps.

    I don't have the correct patch to clear out the name.

  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    @olsen9 ,

    I will leave you in the capable hands of @RandyHayes 

  • olsen9 Profile Picture
    378 on at

    This one works for both adding and removing names from a combo box Drop down

     

    {
     Name2: 
     If(IsBlank(ComboBox13_1.Selected.Mail), Blank(),
     {Claims: "i:0#.f|membership|" & Lower(ComboBox13_1.Selected.Mail),
     Department: "",
     DisplayName: "",
     Email: "",
     JobTitle: "",
     Picture: ""
     }
     }
    ),
  • olsen9 Profile Picture
    378 on at

    Problem I am having now is this doesn't work for both items.  Either one has data and saves or the other ones clears out

     

    Here is my code

     

    {
    Name1:
    If(IsBlank(ComboBox10.Selected.Mail), Blank(),
    {Claims: "i:0#.f|membership|" & Lower(ComboBox10.Selected.Mail),
    Department: "",
    DisplayName: "",
    Email: "",
    JobTitle: "",
    Picture: ""
    }
    )
    };
    {
    Name2:
    If(IsBlank(ComboBox10_1.Selected.Mail), Blank(),
    {Claims: "i:0#.f|membership|" & Lower(ComboBox10_1.Selected.Mail),
    Department: "",
    DisplayName: "",
    Email: "",
    JobTitle: "",
    Picture: ""
    }
    )
    };
    {SubmitFlag:"1"};
    )

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @olsen9 

    I will reply to you in your new posted topic.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard