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 / how to update a combob...
Power Apps
Answered

how to update a combobox after an add

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I created an application with a combobox that displays the list of clients.

menu_A.png

When a client does not exist, he can create it by clicking on the icon and the user will be redirected to another screen with a text field.
menu_B.pngmenu_C.png

After validating the user return to the main page.

menu_D.png

The problem is that when the user wants to select the new client, it does not appear.

he appears by writing the first letters of his name.

menu_E.png

 

How can I make the new client appear in the combobox?

Thanks for your help
.

 

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    I was not able to recreate your issue on my side.  Can you please share your code used to add the new client into the datasource? 

     

    In the meantime, I have two general ideas you can try.  The first is you could Refresh the datasource after the new client is added.

    Refresh(your_datasource_name);

     

    The second idea is to try resetting your ComboBox.  Use this code after adding your new client.

    Set(resetCB,true);Set(resetCB,false);

     

    Then use this code in the Reset property of your ComboBox

    resetCB

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Edvhdy Profile Picture
    101 on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hello @mdevaney  ,thanks for your return.

     

    I used this code, so that the user validates the form, refresh the list, display the success operation message and new basic form.

     

     

    SubmitForm (Form3) ;; Refresh (ClientList) ;; Navigate ('Success Operation') ;; NewForm (Form1);

    and this code :

     

    Update (fx)

     

    okk.png

  • mdevaney Profile Picture
    29,993 Moderator on at
    @Anonymous
    Did you try the Reset suggestion? I haven’t tested that on my side but I want to eliminate the possibility.

    Next question, what data source are you using?
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I use two sharepoint lists.

     

    the first "TimeSheet" list is used to save the times and the second "ListClient" list is used in the "TimeSheet" list

    I tried these methods:

     

    - property DataCardValue10 : reset : true

    (DataCardValue10 is the first combobox that displays the list of customers)

     

    new client button property :

    SubmitForm (Form3) ;; Refresh (ClientList) ;; Reset (DataCardValue10) ;; Navigate ('Success operation') ;; NewForm (Form1) ;;

     

    When I leave the application and restart it, I have the information.

     

     

     
     
    can you tell me where we put your code?
    
    
    
    Set (resetCB, true); Set (resetCB, false);
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share more details about the formula you typed within the Items property of the Client ComboBox?

     

    Please consider take a try with the following workaround:

    Modify your "Validation" formula as below:

    SubmitForm(Form3);; 
    Set(resetCB, false);;Set(resetCB, true);; /* <-- Add Reset formula here */
    Refresh(ClientList);; 
    Navigate('Success Operation');;
    NewForm(Form1);

     

    then set the Reset property of the DataCardValue10 (Client ComboBox) to following:

    resetCB

    Please consider take a try with above solution, check if the issue is solved.

     

    Based on the needs that you mentioned, I think it is not necessary to navigate to another screen to add new Client option, instead, you could consider type Searck text within the Client ComboBox (DataCardValue10) as new Client Option directly, then when you submit your form data, the typed search text value (new client option) would be saved back to your SP List.

    Please make sure the Update property of the Client Data card (which contains the DataCardValue10) in your Edit form to following:

    If(
     !IsBlank(DataCardValue10.Selected),
     DataCardValue10.Selected,
     !IsBlank(DataCardValue10.SearchText),
     {
     Value: DataCardValue10.SearchText
     }
    )

     

    Best regards,

  • Edvhdy Profile Picture
    101 on at
  • Edvhdy Profile Picture
    101 on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @v-xida-msft 

     

    I apply your remarks:

    - added code in the update property of Liste_Client_DataCard1:
    picture1

    - in the items property of datacardvalue10 I have Choices([@TimeSheet].NomClient)
    picture2

    -in the reset property of datacardvalue10 I resetCB
    picture3

    - in the addclient screen in the validated button I put this code in the OnSelect property:
    SubmitForm (Form3) ;; Set (resetCB; false) ;; Set (resetCB; true) ;; Refresh (CustomerList) ;; Navigate ('Success operation') ;;

    picture2.png
    picture1.png
    picture3.png
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    20191107_134725.gif

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard