Using jr:choice-name() in the Instance_Name setting

1153
7
Jump to solution
05-04-2021 05:37 PM
GFernando
New Contributor III

I love using jr:choice-name() to return labels associated to select_one and select_multiple question. But I haven't been able to use it in the Instance_Name setting. It throws an invalid error.

I've only tested this on a windows 10 PC with the latest Survey123 field app.

0 Kudos
2 Solutions

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

Tip: Use a calculate question in your main survey worksheet and set its esriFieldType to null. Then reference your calculate in the instance_name expression.

View solution in original post

Philip-Wilson
Esri Notable Contributor

Hi @KPyne,

jr:choice-name is currently not supported for instance_name. This also applies if the instance_name references a question with a calculation that uses jr:choice-name.

I encourage you to submit an enhancement request via Esri Support. Our Support team will assign an official enhancement number for your records. Similar requests from other customers can then be attached to the same enhancement request, which helps us assess demand for the enhancement and prioritize it accordingly.

Regards,

Phil.

View solution in original post

0 Kudos
7 Replies
IsmaelChivite
Esri Notable Contributor

Tip: Use a calculate question in your main survey worksheet and set its esriFieldType to null. Then reference your calculate in the instance_name expression.

KPyne
by
New Contributor III

Hello,

I can not seem to get this to work....I have a calculate question that uses jr:choice-name to populate the label value. It works fine throughout the form. But when called in the instance name it is blank

Using the latest iOS field app

Capture.JPGexample.JPG

 

0 Kudos
Philip-Wilson
Esri Notable Contributor

Hi @KPyne,

jr:choice-name is currently not supported for instance_name. This also applies if the instance_name references a question with a calculation that uses jr:choice-name.

I encourage you to submit an enhancement request via Esri Support. Our Support team will assign an official enhancement number for your records. Similar requests from other customers can then be attached to the same enhancement request, which helps us assess demand for the enhancement and prioritize it accordingly.

Regards,

Phil.

0 Kudos
KPyne
by
New Contributor III

Ah thanks Philip, I misunderstood the original question thinking GFernando was able to use jr:choice-name() in a calculate question. I will revise the calculation

Oddly enough, the values do appear correctly in the sent/draft folder

Tim-Woodfield
New Contributor III

Hi @Philip-Wilson ,

Was there any update on this feature or was there a way to be added to the enhancement request?

Thanks!

0 Kudos
Philip-Wilson
Esri Notable Contributor

Hi @Tim-Woodfield,

There are no updates on this enhancement with 3.14 release, support for jr:choice-name in instance_name is still in the backlog.

Note this enhancement has not been raised by any customer as an official Esri Support enhancement, only discussed in Esri Community. If you would like to log it as an official enhancement with Esri Support, that will help prioritize and allow other customers to also attach their accounts to that enhancement.

Regards,

Phil.

EthanLambert
New Contributor

Hello, I wanted to 2nd the request for this enhancement.

I have a multi-stage process in Survey123 & use the instance name settings to make the inbox readable. The titles would be even more clear if jr:choice-name were supported for instance_name.

0 Kudos