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 / Correct combobox formu...
Power Apps
Answered

Correct combobox formula on Search button

(0) ShareShare
ReportReport
Posted on by 84

Hi everyone, after a long conversation with AIs available, I come here begging for help as no solution could be found.

I have a form on PowerApps that has 3 fields. The first field is a combobox and I have populated the dropdown with a list from Sharepoint. I am trying to add the answer of the form to another sharepoint list, but I keep getting an error on that first field. When I removed the formula of the first field the answers populate the list successfully with no errors or warnings.

Here are the formulas I have tried:

1 - Name: Text(If(!IsBlank(ComboBox.Selected), ComboBox.Selected.Name, ""))

I get the error: The function "Text" has some invalid arguments. Expected text or number. We expect text or a number at this point in the formula. This error will occur if you use a function that requires either text or a number but you supply. for example, a boolean value

 

2- Name: If(!IsBlank(ComboBox.Selected), ComboBox.Selected.Name, "")

Incompatible type. The item you are trying to put into a record has a type that is not compatible with the record
 
3- I also tried Name: ComboBox.Selected.Value at some point and others that I lost track of the errors. Some of the formulas were accepted but then got a network error ( Network error when using Patch function. The specified column is generated by the server and can't be specified). I have checked the column name is correct *cries uncontrollably*
 
Here's the code the runs just fine and populates my list:
Patch(
   'Hot Stuff Nominations',
   {
      *formula that keeps failing goes here*
      Reason: TextInput.Text,
      'Core Value': Concatenate(
                  If(Checkbox1.Value,"We passionately believe in what we are doing, ", ""),
                  If(Checkbox2.Value, "We continue to innovate, grow and develop, ", ""),
                  If(Checkbox3.Value, "We are upfront in what we say and do, ", ""),
                  If(Checkbox4.Value, "We take pride in delighting the customer, ", ""),
                  If(Checkbox5.Value, "We value each other’s strengths and effort for the team, ", "")
               )
   }
)
 
Ps. the "Name" column on Nominations list is configured to be a single line of text type.
 
Thank you in advance for any help or enlightenment.

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @juls ,

     

    Firstly, please check if the Name column is set to be required in Nominations list. If it's required, when combo box is blank, the third error occurs. I believe you have a Distinct function in Items of the Combo box, so the third formula is correct:

    Name: ComboBox.Selected.Value

     

    If the name column is indeed required, make sure the field in the form is required as well.

    vjefferni_0-1702543888090.png

     

    Best regards,

  • juls Profile Picture
    84 on at

    Thank you for your reply!

     

    I can't find the required option on the advanced tab for any of the fields, but that might be where my error is?, because it's the first time I'm hearing about this. I've looked on the search "Search for a property" as well but I can't find anything "Required" field =/

    On the list, none of the columns is required (yet), I was going to make it required but I can't find that field on PowerApps.

    When I use the formula "Name: ComboBox.Selected.Value" I get 3 errors, one of them being "The type of this argument 'Name' does not match the expected type 'Text'. Found type 'Error'."
    So I changed to 
    Name: Text(ComboBox.Selected.Value) and I get 1 error "The function 'Text' has some invalid arguments." I'm so confused, sorry!

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @juls ,

     

    I found that even custom field Data Cards have required property. 

    vjefferni_0-1702877037472.png

    How did you add these fields into the Form?

     

    Best regards,

  • juls Profile Picture
    84 on at

    Maybe I am doing it wrong? I am just inserting each field, even my text input field doesn't have a required. 

    juls_0-1702926394430.png

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @juls ,

     

    So, there is no form in your App. You are using standalone controls. Now I want to know more about the Name column, is it a custom column or system default column? 

     

    Best regards,

  • juls Profile Picture
    84 on at

    Sorry about the late reply!

    That column was a default column (named Nominee), but I created another column called "Name: just in case that was one of the problems.

     

    for reference:

    juls_0-1703120375100.png

     

    Do you recommend I make the PowerApps that I thoguht was a form as a form then? haha I just followed what chatGTP told me, because I really had no idea how to do it. It's a canvas type, could that be why it isnt working?

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @juls ,

     

    You can use the Edit form control, it's a component which could easily be used for editing records in a table. 

    PowerApps: Using the Same Form Control for New and Edit - YouTube

     

    Best regards,

  • juls Profile Picture
    84 on at

    Thank you for the direction Jeffer, I appreciate your help.

    I'll put that as a solution, but I will only be able to test it out in 2 weeks after the holidays now. Here's hoping that will fix it hahah

     

    Happy holidays!

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard