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

Community site session details

Session Id : jTgfscPw9KkiT7vJKE4Z/J
Power Apps - Microsoft Dataverse
Answered

JavaScript OnSave event of lead qualification

Like (0) ShareShare
ReportReport
Posted on 13 Jul 2023 19:31:26 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

Categories:
I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    3,304 Most Valuable Professional on 14 Jul 2023 at 00:11:20
    Re: JavaScript OnSave event of lead qualification

    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.

  • rb207 Profile Picture
    6 on 13 Jul 2023 at 23:37:50
    Re: JavaScript OnSave event of lead qualification

    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
    Parvez Ghumra Profile Picture
    1,579 Moderator on 13 Jul 2023 at 22:32:18
    Re: JavaScript OnSave event of lead qualification

    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

  • a33ik Profile Picture
    3,304 Most Valuable Professional on 13 Jul 2023 at 20:20:45
    Re: JavaScript OnSave event of lead qualification

    Hello,

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 892 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics