Select to view content in your preferred language

Survey widget - send data to survey fails for 1 connection

142
4
3 weeks ago
Labels (1)
nworbi
by
Emerging Contributor

Hi

Any ideas why 1 connection does not send data to survey in the Survey widget in Experience Builder?

The survey was created using Survey123 Connect. All other connections work correctly apart from Detection Type.

nworbi_0-1752590076220.png

 

0 Kudos
4 Replies
JuanTomásMartinez17
Esri Contributor

Hi! Could you please provide more details to help troubleshoot the issue?

  • Question type in the Survey123 form (e.g., select_one, text, integer, etc.)

  • Field type in the source feature layer (e.g., string, integer, domain, etc.)

  • How is the question configured in the XLSForm? (including the name and any bind::esri:fieldType, bind::type, default values, calculations, constraints, etc)

Also, a single check that could be the solution:
- Since it's a select_one question, does it use the exact same list of choices or domain values as the source layer?

Let me know so we can keep trying!

0 Kudos
nworbi
by
Emerging Contributor

Hi @JuanTomásMartinez17 

  • Question type is select_one esriFieldTypeSmallInteger
  • Integer domain does match the feature layers
  • In the XLSForm, everything is blank apart from the field type

 nworbi_0-1752591438045.png

 

nworbi_1-1752591583990.png

 

0 Kudos
nworbi
by
Emerging Contributor

As all my data currently has the '0/New' value, I didn't realise that other values show in the survey as expected. For some reason, it is only '0/New' that results in a blank

0 Kudos
JuanTomásMartinez17
Esri Contributor

This explains the issue completely.

Since 0 is treated as a false value in JavaScript, it causes a compatibility issue when passing data between widgets.

A good workaround is to start the codes from 1 instead, or to use string values instead of numbers.

Hope this solves the problem!

0 Kudos