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 / Allow Multiple Images ...
Power Apps
Answered

Allow Multiple Images with Same Description

(1) ShareShare
ReportReport
Posted on by 5,331 Moderator
I have Screen1, which has Gallery1 and Dropdown1.

'OnStart' has -
ClearCollect(col_Drop_Job_Picture_Title_Collection,
    {Image_Name: "Cable Footage End"},{Image_Name:"Cable Footage Start"},
    {
Image_Name:"Cable Footage Transition"},{Image_Name:"Light Level at NID"},
    {
Image_Name:"Light Level at Tap"},{Image_Name:"Map Route"},{Image_Name:"NID Closed"},
    {
Image_Name:"NID Open"},{Image_Name:"Pole ID Tag"},{Image_Name:"Riser Guard"},
    {
Image_Name:"Other"},{Image_Name:"R/V Agreement (Optional)"});


Gallery1 has Items -
If(AJP_Invoice_Type_Fld.Text = "Drop",["Cable Footage End","Cable Footage Start",
"Cable Footage Transition","Light Level at NID","Light Level at Tap","Map Route",
"NID Closed","NID Open","Pole ID Tag","Riser Guard","Other","R/V Agreement (Optional)"],


Dropdown1 Items has - 
If(AJP_Invoice_Type_Fld.Text = "Drop",
  Filter(col_Drop_Job_Picture_Title_Collection,
        Not(
            Image_Name in Drop_Job_Image_Collection.DisplayName
        )
  )

The image 'R/V Agreement (Optional) is not required. As well, 'Other' images are not required, however, the user should
be able to take add as many images with the title 'Other' as necessary.

My formula, which is working correctly, was written to remove a title from the ComboBox list once the title is used.
But I now need the formula to work in a different way - allowing 'Other' to remain available even though previously
used.
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,505 Most Valuable Professional on at
    Add a second column to the collection. Set the values to "Single" or "Any". If the value of the selected item is Single remove it from the Gallery.  If its Any then don't remove it.  The item with "Other" as the name would be set to "Any" everything else would be set to Single.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Phineas Profile Picture
    5,331 Moderator on at
    To be clear, to which collection am I adding the column - 
    Drop_Job_Image_Collection or col_Drop_Job_Picture_Title_Collection?

    How is each item assigned the proper content - 'Single' or 'Any', if that has not been previously
    clarified in a column of the same in the data source?
  • Verified answer
    Pstork1 Profile Picture
    69,505 Most Valuable Professional on at
    If I am reading your code right it would be in the col_Drop_Job_Picture_Title_Collection.  Then you would use that value to not add the "other" item to the Drop_Job_Image_Collection.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Verified answer
    Phineas Profile Picture
    5,331 Moderator on at
    Something like this -
     
    ClearCollect(col_Drop_Job_Picture_Title_Collection,
        {Image_Name: "Cable Footage End", Use_Type: "Single"},
        {
    Image_Name:"Cable Footage Start", Use_Type: "Single"},
        {
    Image_Name:"Cable Footage Transition", Use_Type: "Single"},
        {
    Image_Name:"Light Level at NID", Use_Type: "Single"},
        
    {Image_Name:"R/V Agreement (Optional)"}, Use_Type: "Single"},
        {
    Image_Name:"Other"}, Use_Type: "Multiple"});
  • Verified answer
    Pstork1 Profile Picture
    69,505 Most Valuable Professional on at
    Yes, then add code where you remove the item from the dropdown if they pick it to only remove it if use_type = Single.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 432

#2
Valantis Profile Picture

Valantis 362

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard