Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Difference between formContext.getControl() and formContext.getAttribute() in Dynamics 365

Pradip Raj Profile Picture Pradip Raj 327
🟡 formContext.getControl('xyz').getValue() ❌ Invalid usage – This is not correct and will throw an error. ✅ Example usage of getControl() (correct): formContext.getControl("xyz").setVisible(false); // Hides the controlformContext.getControl("xyz").setDisabled(true); // Disables the control formContext.getAttribute('xyz').getValue() ✔️ Correct usage – This is how you get the actual data value of the field. ✅ Example: var value = formContext.getAttribute(“xyz”).getValue(); // Gets … Continue reading Difference between formContext.getControl() and formContext.getAttribute() in Dynamics 365

This was originally posted here.

Comments

*This post is locked for comments