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 / Removing a String Valu...
Power Apps
Answered

Removing a String Value from a String List

(1) ShareShare
ReportReport
Posted on by 59

Good morning all,

 

I have created a variable, where if you press the arrow button it will get the values on the left and add it to a text label. It will then add it to the gallery on the right.

 

My aim is to when clicking the arrow from the gallery on the left, either the value on the left should disappear so it cannot be selected again or it will add it to the variable (text label) but only once and if removed it should remove the value.

 

I hope this makes sense?

 

In short the the list on the left when selected should only be allowed to be selected once to be put in the right gallery and if removed from the right gallery should be made available to be selected again for the right.

 

Any help would be highly appreciated. 

 

TheBest355_1-1708427044937.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,705 Most Valuable Professional on at

    Hi @TheBest355,

     

    Before using the text variable, you could use collections to organise values on the left and right, similar to the following, making it easier to display them in the left and right columns:

    ClearCollect(colComboBoxOptions,
     {
     Name:"PRD123",
     Column:0 // Left column.
     },
     {
     Name:"PRD234"
     Column:1 // Right column.
     }
     // etc
    );

     

    After using this approach, you could then save the values to text variables if required.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard