Skip to main content

Notifications

Customer Service forum

Lookup field on portal page not firing the custom javascript event

Posted on by Microsoft Employee

Hi,

On the profile page we need some customizations. On changing the value of look up field of preference language(out of box entity) we need a modal or overlay to be displayed with terms and conditions according to the language selected.

I tried to fire an event for this with below code

$('#adx_preferredlanguageid_name').change(alert("hi"));
I am getting alert box on page load, but later on changing value in the field it is not triggering. Can some one help?
Also if possible please suggest any idea how can i display the terms and conditions modal with localized content on change of language lookup.
Thanks in advance!!
Categories:
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Lookup field on portal page not firing the custom javascript event

    Try:

    $('#adx_preferredlanguageid').change(function() {

       alert("hi");

    });

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,336 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans