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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / DynamicsDevPro / MS Dynamics 365 CRM referes...

MS Dynamics 365 CRM referesh composite address field - #JSTip1

ram r Profile Picture ram r
I have found a quick hack(dirty way) to refresh composite fields based on other address fields in the form using direct DOM manipulation, below is the sample and explanation.


1. Go to the parent window in the java script
2. Trigger a click on address field which pop's up the address 
3. Close the pop-up which will refresh data.


window.parent.document.getElementById("address1_composite").click()
window.parent.document.getElementsByClassName("ui-widget-overlay-flyout")[0].click()

Note:
Enclose them into a try catch block for soft exit. For closing and reopening the window, use the second statement before calling the first and second statements.

This was originally posted here.

Comments

*This post is locked for comments