I need to hide a field on my form according to a quick view field (data from quick view form), is there an option to get the data from a quick field control with js code? or must I use query for this?
Hello there!
The answer is Yes for JS code. Please follow the below links for your solution:
arpitmscrmhunt.blogspot.com/.../access-quick-view-form-values-using.html
mahadeomatre.blogspot.com/.../access-quick-view-form-values-in.html
function onLoadForm (executionContext){ var formContext = executionContext.getFormContext(); var tabParentAccountOverview = formContext.ui.tabs.get("Parent account infos"); tabParentAccountOverview.addTabStateChange(accessToQuickView); } function accessToQuickView(executionContext){ var formContext = executionContext.getFormContext(); var parentAccountQuickView= formContext.ui.quickForms.get("parentaccountQuickView"); if(parentAccountQuickView.isLoaded()){ var phoneNumber = parentAccountQuickView.getControl("telephone1").getAttribute().getValue(); console.log(phoneNumber); } }
For Ms Dynamics V9:
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
MVP-Daniyal Khaleel 125
Tom_Gioielli 121 Super User 2025 Season 2
Erin Lubben 73