Select to view content in your preferred language

Filenames not working for signatures in WebForms

614
4
04-12-2023 03:18 PM
Vinzafy
Occasional Contributor

Hey all,

I've encountered an issue where filenames are not working for signatures in WebForms. They work in the S123 app, but do not work properly in WebForms launched on mobile devices. Strangely, the filenames seem to work in WebForms on a Desktop.

Survey123 App (filename visible below signature)

Vinzafy_0-1681336812856.png

WebForm (filename visible below signature)

Vinzafy_2-1681337030582.png

Viewing the HFL in Pro

Vinzafy_3-1681337318151.png

 

The expression I have is the following which is in the bind::esri:parameters column:

fileName=concat(${ff_attd_name_first}, "_", ${ff_attd_name_last}, "_signed_ff_training_waiver_", format-date(now(), "%Y%m%d_%H%M%S"))

Please note that I have seen this thread along with this page from Ismael.

Hopefully it's a simple fix! Thanks all.

 

EDIT: Extract of the XLSForm is attached here and results from testing on various browsers is found below:

Method UsedFilename
Survey123 App on iPadTesting_App_iPad_signed_ff_training_waiver_20230413_081355.jpg
Desktop WebForm - EdgeTesting_Desktop Edge_signed_ff_training_waiver_20230413_081134.jpg
Desktop WebFrom - Chromesignature-20230413081307182.jpg
Desktop WebForm - FirefoxTesting_Desktop Firefox_signed_ff_training_waiver_20230413_081246.jpg
Mobile WebForm - Edgesignature-20230413081934364.jpg
Mobile WebForm - Chromesignature-20230413081509456.jpg
Mobile WebForm - Firefox

Testing_Mobile Firefox_signed_ff_training_waiver_20230413_082043.jpg

 

Seems that Firefox is able to respect the filename both in mobile and desktop; chrome in neither; and edge only on desktop.

4 Replies
ChristopherCounsell
MVP Regular Contributor

For issues like this I'd recommend trying to reproduce the unexpected behaviour with a simple form that you can share. This helps rule out if it's tied to your XLSForm or workflows.

Testing with the Images and Annotation sample in Survey123 Connect 3.17.55, the signature_2 question should calculate the fileName of the signed in user.

  • In Chrome (desktop) it succeeds
  • On Safari (iOS) it names it signature-date, the same behaviour you are seeing.

I would say that this is a bug tied to the browser or device. The next step is to raise it with support, who can formally lodge a defect to be passed to the development team. This also lets you follow the defect status.

We can also tag some of the Survey123 gurus here like @IsmaelChivite to add to their internal system.

Vinzafy
Occasional Contributor

Thanks so much for your reply @ChristopherCounsell! Appreciate it. Admittedly this was a rushed post that I should've saved for today. The advice you gave at the end is key for newer users like myself to help the community grow. Thank you!

Attached is a simplified XLSForm where I was able to recreate the issue. I tried in three different browsers both on desktop and mobile. Results are below:

Method UsedFilename
Survey123 App on iPadTesting_App_iPad_signed_ff_training_waiver_20230413_081355.jpg
Desktop WebForm - EdgeTesting_Desktop Edge_signed_ff_training_waiver_20230413_081134.jpg
Desktop WebFrom - Chromesignature-20230413081307182.jpg
Desktop WebForm - FirefoxTesting_Desktop Firefox_signed_ff_training_waiver_20230413_081246.jpg
Mobile WebForm - Edgesignature-20230413081934364.jpg
Mobile WebForm - Chromesignature-20230413081509456.jpg
Mobile WebForm - Firefox

Testing_Mobile Firefox_signed_ff_training_waiver_20230413_082043.jpg

 

Seems that Firefox is able to respect the filename both in mobile and desktop; chrome in neither; and edge only on desktop.

Additionally, in everything apart from the S123 app, the filename field that I made visible below the signature returns a generic filename.

S123 App

Vinzafy_0-1681396125405.png

Any Browser - Mobile or Desktop

Vinzafy_1-1681396152477.png

 

Hopefully this helps with troubleshooting! In any case, I'll raise this with support when I have the chance later today/tomorrow.

Thanks again.

IsmaelChivite
Esri Notable Contributor

@Vinzafy  @ChristopherCounsell   You rock!  Agreed 100%. This is ready for an official Tech Support case to be opened. 

In the meantime, I will also let my colleagues in the Survey123 team know as a heads up to the Tech Support case. Many thanks!

Vinzafy
Occasional Contributor

Thank you for your response Ismael and apologies for my delayed one! Busy end of week.

I've logged a Tech Support case with basically the same details and attachments in this thread (along with linking this thread in that case).

For reference, the case number generated was 03318039.

Thanks again!

0 Kudos