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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Copying the contents o...
Power Apps
Unanswered

Copying the contents of a selected Value in a ComboBox

(0) ShareShare
ReportReport
Posted on by 818

So I have a Combobox that stores over 30k items. After selecting one, the other users will need to copy whatever was chosen. However this text is unselectable, correct? I need a way so they can copy whatever was selected. I see three options:

1- Wouldn't want this one but, having a Label that just replicates the text of what was selected. Know how to do this but just adds more text to my app.

2- Making it somehow selectable, which I don't know how to do. This would be the ideal way.

3- Dunno if this is possible, but creating a button that sets to Clipboard whatever was selected. ChatGPT told me with a button -> OnSelect "SetClipboard(Label1.Text)", but PowerApps says it does not recognise that function.

Do you se a 4th option? Would love is the 2nd is possible, if not, i'll be glad with any solution. Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    trjackson77 Profile Picture
    254 on at

    Hi @WorkingRicardo,

    Regarding your query about copying the selected item from a ComboBox for other users, PowerApps offers a function called Copy() that can be very useful. The Copy() function allows you to copy text to the clipboard on the device where the app is running.

     

    To implement this, you can create a button and set its OnSelect property to copy the text from the ComboBox. The syntax for the Copy function is straightforward: Copy(text), where text is the text you want to copy. In your case, it would be the selected item in the ComboBox.

     

    Here's a simple example:

    1. Suppose your ComboBox is named ComboBox1, and the selected item's text is what you want to copy.
    2. Add a Button control to your screen.
    3. Set the Button's OnSelect property to Copy(ComboBox1.Selected.Text).

    When users click this button, the selected item's text from the ComboBox will be copied to their clipboard.

     

    Please note that the Copy() function works with text values and will copy the text to the clipboard as plain text.

     

    Also, the function's availability may depend on the host of the app. In certain embedded app scenarios, like Power Apps in SharePoint or embedded apps in Power BI, the Copy() function might not be supported. It's a good practice to use the IfError() function to handle cases where the copy action might fail.

     

    This approach should provide a seamless way for users to copy the selected item from the ComboBox without additional text cluttering your app.

     

    Cheers,

     

    Tim.

     

     

     

    References:

  • WorkingRicardo Profile Picture
    818 on at

    thanks! i did just that and even with an image of a clipboard lol. Was hoping for it to be possible to manually select it and copy it but oh well. This fixes the issue. Thanks again!

  • trjackson77 Profile Picture
    254 on at

    If you want to manually select the combo box value and automatically copy the value then simply use the same process on the `OnChange` property of the combo box.  That way you remove the user step of pressing the button.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard