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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

call JavaScript function on quick create form

(0) ShareShare
ReportReport
Posted on by 1,562

Hello All,

I need to call JavaScript function on quick create form in D365 online.

I have a account lookup on Opportunity quick form i have few Javascripot function that needs to call while user change account lookup. can anyone please help me here.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    Are you facing any issue while calling your js on quick create form ?? , you can create js webresource and add it to quick create form can call your method on change of the account lookup just like we do in the main form?

    If you are new to we bresource, you can refer: docs.microsoft.com/.../walkthrough-write-your-first-client-script

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at

    Sorry, JavaScript does work on Quick create

  • Tin Profile Picture
    1,562 on at

    Then is there any way i can use ?

  • Tin Profile Picture
    1,562 on at

    Hi Mahender,

    I am unable to add JS for quick create form could you send me steps please.

  • Suggested answer
    Aman Anvaria Profile Picture
    306 on at

    Hi Tin,

    Go to Customization select the Quick Create form of Contact entity go to Form Properties, add the webresource and in Event Handler select the field for OnChange event.

    JS webresource will run in normal way just like other forms.

    If you are facing any error, please share screen-shot of error.

    Thanks and Regards,

    Aman Anvaria

  • Aman Anvaria Profile Picture
    306 on at

    *Quick create form of opportunity entity

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,


    Adding JS in quick create is smilar to main form , you just need to go to quick create form and add your jas over there and select event , add function.

    Go to settings-> Customization->Solution or Customize the system --> Go to your entity --> Select Quick Create Form --> Add your JavaScript web resource.

    1588.quick2.png

    1588.quick2.png

    Hope this helps.

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    Make sure you are referring quick create not Quick view forms, you can't add script to quick view forms as they are read only form. Please some screen shots how you are doing it and on which entity.

  • Verified answer
    naZir Profile Picture
    850 on at
  • Tin Profile Picture
    1,562 on at

    Thanks Goutham, now I can hit JS function.

    few fields which i don't have on quick create form but its existing on main form.

    Can I set value and save these, by calling on save event from quick create form ?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans