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 / Collect and addcolumns...
Power Apps
Answered

Collect and addcolumns if a dropdown value is equal to "No"

(0) ShareShare
ReportReport
Posted on by 301

Hi,

 

I have created a canvas app that is to be completely offline and using sharepoint as the datasource to patch too and collect from

In this app is a bunch of questions that a user uses a dropdown to select yes or no and at the end of the questions if they have selected no for any items when they have pressed the OnSubmit button i wish for a collection to be made and each row will have

a column ill call "GalImageType" with the name of item that has the answer "No" 

and three other blank columns ill call "GalImageURL", "GalImageDetails" and "GalImage"

I know this code is wrong and its probably something to do with addcolumns however its where my thoughts are currently at do i do something like this but for each dropdown?

 

ClearCollect(
 colPrestartImageInspection,
 If(copybrakes.Selected.Value = "Non Compliant", 
 {GalImageType: "Brakes","GalImageDetails: "","GalImageURL:"",GalImage:"");

 



Could someone help me write this code? as i cant figure it out.

 

Thankyou

 

Categories:
  • Verified answer
    TJO Profile Picture
    230 on at

    @ShaneITAutomate You could try with something like this:

    ClearCollect(
     colPrestartImageInspection,
     If(
     copybrakes.Selected.Value = "Non Compliant", 
     {
     GalImageType: "Brakes",
     GalImageDetails: "",
     GalImageURL:"",
     GalImage:""
     }
     )
    )

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard