Hello,
I just spotted an error in the documentation and typings regarding the FeatureFormViewModel.
It is stated that the list of fields of the feature form is available in the "inputField" property:
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#inputField
But it is actually available in "inputFields" property. You check the console after selecting an item for example on the the following sample:
https://codepen.io/kfnsdkfjsdajf/pen/LYpOVoQ
Thanks
The doc should now be updated: FeatureFormViewModel.inputFields | ArcGIS API for JavaScript 4.15
We don't normally update the typings in between releases, but if you need this updated in your typings, you can either make the edit to the file locally, or in your app you could do something like (formVM as any).inputFields
(formVM as any).inputFields
Agh you're right! Sorry about that. I will get it fixed for good this time.
Hello Anne Fitz,
I just noticed that the issue occurred again at 4.16. Both documentation and typings are expecting "inputField" property instead of "inputFields".
Thanks !
Great, thanks for the quick fix and reply !
Hi Nicolas,
Thanks for pointing this out! You're correct, it's supposed to be "inputFields". We will get this updated in the documentation and typings as soon as possible.
Thanks again,
Anne
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.