Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

save either selecteditem or search text

(0) ShareShare
ReportReport
Posted on by 44

Hello,

 

how would you save datas from combobox to shareponint list, 

in sharepont list i have lets say 20 names. 

combobox allows searching, 

 i have 20 names to save -- this one is combobox.selected items, 

if i have 21 name which is not in the list - it is combobox.searchtext

Can these two functions work together like this:

 

SubmitForm(Form1);

Patch('name_list',Defaults('name_list'),

{names:ComboBox1.Selected.names, or names: Combobox1.SearchtText})

 

When i write it like this - in sharepont is appearing fasle. 

So is it possible to save either selected items or searchtext depens which one is blank ??

 

Thanks

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 145,636 on at
    Re: save either selecteditem or search text

    Hi @11playto16 ,

    Try this

    Patch(
     'name_list',
     Defaults('name_list'),
     {
     names:
     Coalesce(
     ComboBox1.Selected.names,
     Combobox1.SearchText
     )
     }
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard