Select to view content in your preferred language

Required questions with a relevant expression are highlighted as errors in webform prior to submitting

248
4
Jump to solution
08-05-2025 10:44 AM
N_Funi
by
Occasional Contributor

Survey was created in Survey123 Connect 3.23.48. Expected behavior is these skipped, required questions will be highlighted when user attempts to submit a survey, not prior to submitting. Required questions without a relevant expression are not getting highlighted prior to submitting. This error is occurring to questions both in and out of pages/groups and in different browsers.

0 Kudos
1 Solution

Accepted Solutions
N_Funi
by
Occasional Contributor

I reached out to ESRI Support and this error has been logged as a bug.

Bug number: BUG-000178954
Synopsis: Required questions with a relevant expression immediately display the warning message before submission in ArcGIS Survey123 Web.
Workaround:
o Downgrade to ArcGIS Survey123 Connect 3.22.
o Move the calculation or expression from the Relevant column to the body::esri:visible column

The workarounds were successful in resolving the error.

View solution in original post

0 Kudos
4 Replies
Leena_Abdulqader
Frequent Contributor

Hi @N_Funi , hmm tricky

Could you try to tie required to the same condition as relevant?

  • Keep your relevant as-is.
  • Change required from yes → required(<your relevant condition here>).
  • Example:
    •  relevant: ${gate} = 'on' 
    • required: required(${gate} = 'on')

This ensures the question is only “required” when it’s actually relevant, preventing early highlighting.

Hope that helps

0 Kudos
N_Funi
by
Occasional Contributor

@Leena_Abdulqader  Thank you for your suggestion, I tried adding the relevant condition to the required column following your example and I was thrown a error- "cannot handle function 'required' ". I tried using the same expression in the required column as in the relevant column and it did publish but the question was still highlighted in the same way as an error in the webform... as far as I can tell the only values allowed in the required column are yes or blank

Neal_t_k
Frequent Contributor

Not an optimal solution but I have seen this question serval times recently and just thought of this. You can make conditional requirements.  Maybe you could try setting all the requirements conditionally required on the last question on your form being filled in and just have that one be required all the time.  So once the user fills in the last and only "required" question on the form,  the rest of the questions become conditionally required, and this should stop the immediate highlighting.

That last question may still be highlighted though depending on your setup?  Also not sure how this would work with repeats?

Hope that makes sense

0 Kudos
N_Funi
by
Occasional Contributor

I reached out to ESRI Support and this error has been logged as a bug.

Bug number: BUG-000178954
Synopsis: Required questions with a relevant expression immediately display the warning message before submission in ArcGIS Survey123 Web.
Workaround:
o Downgrade to ArcGIS Survey123 Connect 3.22.
o Move the calculation or expression from the Relevant column to the body::esri:visible column

The workarounds were successful in resolving the error.

0 Kudos