Hi there,
I have a basic form which opens in a modular or dialog style from a create new button on a list.
I am trying to use the Web API but despite it working on other parts of the site, the console error states that it is not defined.
I don't get this error when the API is called on the Web page which holds the list (whether on web page or list JS) - but as the field is on the basic form this is no use.
Is this a known issue whereby the modular form isn't pulling through code defined elsewhere or am I missing something?
I know the workaround would be to have the form on a standalone web page, but as it's small the modular/dialog style works well.