Hi,
It would be useful to add support to set values to Repeats (Repeats—Survey123 for ArcGIS | Documentation) with the JavaScript API (setQuestionValue method, constructor of WebForm, etc.). Also, support is also needed to set, add or remove records in Repeats.
Thank you!
Hi @PatriceLabbé ,
This will be supported in the 3.13 release in September. Could you please have a try then?
For example:
webform.setQuestionValue({'License': '123','ReportDate': '2020-07-11','Location': {x: 129.1236,y: 29.1236,spatialReference: {wkid: 4326}},'HoursFished': 10,'WaterbodyName': 'River A','Weather': 'rain',// repeat'CapturedFish': [{'Species': 'Paddlefish','FishSize': 50,'FishWeight': 100,'condition': 'normal','fishPosition': {x: 161.123,y: 29.123}},{'Species': 'Trout','FishSize': 51,'FishWeight': 101,'condition': 'poor','fishPosition': {x: 169.123456,y: 19.123456}}]});
Thanks,
Jody Zheng Liu
Melden Sie sich an, um zu posten, Inhalte zu folgen und mehr. Neu hier? Kostenlos registrieren.