Hi,
I am creating a survey123 form through ArcGIS Survey123 Web App JavaScript API. But I am not able to acess the survey form.
const webform = new Survey123WebForm({
clientId: 'uWqBqfybE4SWiQJL',
container: 'formDiv',
portalUrl: 'https://gis.example.com/portal',
mode: 'edit',
globalId: globalid,
itemId: '5780e99999904bb9b981b7a99999999',
The Following error occurs: 'You do not have permission to submit the survey'. The Feature service does not exist or not accessible.
However,, when I view the frame source URL, then through that url the form is opening and its accessible.
I don't see any property in the documentation for the Survey123WebFormOptions class other than token.
Even after passing that (since, its a private survey), I am getting the same error.

Kindly reply with possible causes.