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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / JavaScript OnSave even...
Power Apps
Answered

JavaScript OnSave event of lead qualification

(0) ShareShare
ReportReport
Posted on by 6

During the lead qualification process, the user can select Yes/No values for the Account, Opportunity, and Contact entities. Is it possible to know what options the user chose in the OnSave event using JavaScript?

 

Screen Shot 2023-07-14 at 5.26.44 AM.png

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    I'm afraid it's not possible at the moment. Can you provide your scenario to check if there way around this issue?

  • Verified answer
    Parvez Ghumra Profile Picture
    1,579 Moderator on at

    Hi @rb207 ,

     

    As @a33ik stated, unfortunately, there's no way to obtain the user's selection in this dialog from a JavaScript onSave event handler. But you tap into the corresponding server-side QualifyLead message, and build a plugin in which you will be able to grab this information from the execution context and then execute the desired logic that way on the server side

  • rb207 Profile Picture
    6 on at

    We want to make certain fields as required based on the entities selected in the 'Qualify Lead' dialog and stop the user from Qualifying the lead. 

  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Gotcha. In this case, I'm afraid the only way for you is to hide OOB button, create a custom that will open the dialog form that you will design, check the values the user selected, and perform the validation and qualification of the lead after.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 279 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 229 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard