Select to view content in your preferred language

Issue with relevant expressions in nested repeats (Survey123 Web Form)

304
4
3 weeks ago
Mohammedshorafa1
New Contributor

Hi,
I am experiencing an issue with relevant expressions in a deeply nested repeat structure in Survey123.

Form Structure:

The survey includes three levels of nested repeats:

Repeat 1: Location
Repeat 2: Machines and Equipment
Repeat 3: Equipment Details

Inside the deepest repeat (Equipment Details), I have a simple logic:

A select_one (yes/no) question
A dependent question that should appear when the answer is "Yes" using a relevant expression
Problem Description:
The relevant expression works correctly in the mobile app (Survey123 field app).
However, in the Survey123 Web Form, the dependent question does NOT appear initially.
If I remove the relevant condition, the question appears normally.
Interestingly, when I add a second record (+) in the same repeat, the relevant condition suddenly starts working for the first record, and the dependent question becomes visible.
Observations:
The issue only occurs in the deepest nested repeat level.
The relevant expression syntax is correct and validated (Analyze survey shows no errors).
The issue occurs during new record creation, not editing.
Example Logic:
Q1 (select_one yes_no)
Q2 (relevant: ${Q1} = '1')
Expected Behavior:

The dependent question should appear immediately when "Yes" is selected.

Actual Behavior:

The dependent question does not appear until another repeat record is added, which triggers a refresh.

Conclusion:

This appears to be a rendering or evaluation issue in the Survey123 Web Form when handling relevant expressions inside deeply nested repeats.

I would appreciate your assistance in confirming whether this is a known limitation or a bug, and any recommended workaround.

Best regards,

0 Kudos
4 Replies
StephanieM1
Esri Contributor

Hi,

Are the repeats within a group?

0 Kudos
Mohammedshorafa1
New Contributor

yes,

0 Kudos
StephanieM1
Esri Contributor
0 Kudos
AlfredBaldenweck
MVP Frequent Contributor

In general, just avoid using relevance with repeats. Try the body::esri:visible column instead, which mostly functions the same way but tends to not have the same bugs that the relevant column does.

0 Kudos