Hi everyone,
I am trying to access a quick view control using the JavaScript Web API and was able to access it however accessing the field values gives me an error message returning a value of null. I have also used the isLoaded method as suggested to verify that the control has been loaded completely on the form but still no luck for me.
As specified in isLoaded, a control's value can be accessed through this way:
var myValue = quickViewControl.getControl("schema_name").getAttribute().getValue();
The code isn't working as expected as it returns null, I tried using the console using Xrm.Page and I was able to access the field value using the following code:
var myValue= quickViewControl.getControl("schema_name").getValue();
It works but the weird thing is it doesn't work on the first control (index 0) of the controls collection as the value returns null also. I was able to verify that the field really contains data.
I don't know if this can be considered as a bug right now as there seems to be no other way to access these field values on the quick create form.