Select to view content in your preferred language

Appearance of records in Inbox

153
4
Jump to solution
2 weeks ago
dsinha
by
Frequent Contributor

Hello,

I have a couple of questions about the appearance of records in the survey Inbox.

1) When I see the list of records in the Inbox, they show the field names instead of the field labels (screenshot below). Is there any way to fix this?

dsinha_1-1752073880972.jpeg

2) When I open the record, it shows the options that were not chosen (screenshot below). Is there any way to only show the options that were?

dsinha_2-1752074125074.jpeg

Thanks!

0 Kudos
1 Solution

Accepted Solutions
Neal_t_k
Frequent Contributor

You can try jr:choice-name(), not sure if it will work for this, but it supplies labels instead of names in other instances.

https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-xlsform-functions/...

View solution in original post

4 Replies
dsinha
by
Frequent Contributor

I figured out part of the solution for (1) by selecting the fields that would be displayed (see instructions here), but it is still showing field names instead of labels.

dsinha_0-1752079723122.jpeg

 

0 Kudos
Neal_t_k
Frequent Contributor

You can try jr:choice-name(), not sure if it will work for this, but it supplies labels instead of names in other instances.

https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-xlsform-functions/...

abureaux
MVP Frequent Contributor

1) When I see the list of records in the Inbox, they show the field names instead of the field labels (screenshot below). Is there any way to fix this?

looks like you got this one mostly sorted out. You will need to use jr:choice-name() as @Neal_t_k suggested to get this working the way you want.

2) When I open the record, it shows the options that were not chosen (screenshot below). Is there any way to only show the options that were?

Short answer is "no".

Longer answer is "yes". You can get the desired result by:

  1. Detecting if the form is, for example, not "new" by using pulldata("@property","mode")
    Use this in the survey:
    abureaux_3-1752263566884.png
    This is the result:
    abureaux_2-1752263557291.png
  2. Dynamically hide the select_one/select_multiple fields using the body::esri:visible column with something like ${header_mode}='new'
  3. Dynamically show a note or a readonly text field. Just do the reverse of step 2.
  4. For the content of the new text field, you will need to use jr:choice-name() as @Neal_t_k suggested.

Generally speaking, those are the steps. 

Personally, I wouldn't do this as showing all the options is typically good practice. But my field is pretty technical and litigation is always on peoples minds. Depending on your use-case, this may be acceptable. 

 

dsinha
by
Frequent Contributor

Thanks @Neal_t_k & @abureaux for all your help.

The jr:choice-name() solution worked as described. For the second issue, I just changed the appearance to minimal.

0 Kudos