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 / Using picklist and tak...
Power Apps
Unanswered

Using picklist and taking action on selected reply

(0) ShareShare
ReportReport
Posted on by 4

I am trying to write a power app where users can rate a drivers performance by selectin either yes or no in response to a rating question.  If the answer is yes I want to add a specific number of points to a number field as well as bump a total amount for that driver/customer/date record.  I used an OnChange formula of  ' UpdateIf(DriverPerformance,DriverInspRpt = "Yes", {DriverInspRptPts:1};{TotalPoints:TotalPoints +1}) '.  The Default is set to No.  When I select Yes, the response shows Yes and a second later it changes back to No.  I want to be able to select yes or no for all question before I click on the submit form.   Can anyone tell me what I am doing wrong?  I am not getting a syntax error on my formula.

Categories:
  • rstolp Profile Picture
    4 on at

    still trying to figure this out.  I moved my updateif statements to the OnSelect at the top of the editscreen and it changed the problem I was having so the update works but it is not updating just the current record it also updates any previous record in the list.  Here is what I put in the on select:

     

    UpdateIf(DriverPerformance,DriverInspRpt = "Yes", {DriverInspRptPts:1};{TotalPoints:TotalPoints + 1});                                                   UpdateIf(DriverPerformance,DriverLog = "Yes",{DriverLogPts:1};{TotalPoints:TotalPoints + 1});                                                            UpdateIf(DriverPerformance,PictureInvoice = "Yes",{PicInvoicePts:1};{TotalPoints:TotalPoints + 1});                                                           UpdateIf(DriverPerformance,BeforePicture = "Yes",{BeforePicPts:.5};{TotalPoints:TotalPoints + .5});                                                       UpdateIf(DriverPerformance,AfterPic = "Yes",{AfterPicPts:.5};{TotalPoints:TotalPoints + .5});                                                            UpdateIf(DriverPerformance,PicOfHose = "Yes",{PicOfHosePts:.5};{TotalPoints:TotalPoints + .5});                                                           UpdateIf(DriverPerformance,PicMoonProd = "Yes",{PicMoonProdPts:.5};{TotalPoints:TotalPoints + .5});                                                             UpdateIf(DriverPerformance,JobCompleteForm = "Yes",{JobCompletePts:1};{TotalPoints:TotalPoints + 1});                                                           UpdateIf(DriverPerformance,LastChanceWarr = "Yes",{LastChanceWarrPts:1};{TotalPoints: TotalPoints + 1});                                                         UpdateIf(DriverPerformance,SafetyGear = "Yes",{SafetyGearPts:1};{TotalPoints:TotalPoints + 1});                                                              UpdateIf(DriverPerformance,JobPlantedCorrect = "Yes",{JobPlantedCorrectPts:.5};{TotalPoints:TotalPoints + .5});                                               UpdateIf(DriverPerformance,WellAroundTree = "Yes",{WellAroundTreePts:.5};{TotalPoints:TotalPoints + .5});                                                   UpdateIf(DriverPerformance,CompletedJobClean = "Yes",{CompletedJobCleanPts:1};{TotalPoints:TotalPoints + 1});                                                   UpdateIf(DriverPerformance,HappyCustPic = "Yes",{HappyCustPicPts:1};{TotalExtraPoints:TotalExtraPoints + 1});                                                 UpdateIf(DriverPerformance,SoldWarranty = "Yes", {SoldWarrPts:2};{TotalExtraPoints:TotalExtraPoints + 2});                                                     UpdateIf(DriverPerformance,MoonSign = "Yes",{MoonSignPts:1};{TotalExtraPoints:TotalExtraPoints + 1});                                                         UpdateIf(DriverPerformance,DoorHanger = "Yes",{DoorHangerPts:1};{TotalExtraPoints:TotalExtraPoints + 1});                                                       SubmitForm(EditForm1)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard