Select to view content in your preferred language

How is a Date Displayed as Read Only Text in Survey123 Connect?

1077
8
Jump to solution
11-15-2022 12:07 PM
vocono1953
Emerging Contributor

The function format-date was used to do this. Placing Today as an inline function call was rejected. Survey sees Today an element that does not exist in the app. 

Also, I don't know what field format-date is placed.

Thank you for your help.

--Bob

 

0 Kudos
1 Solution

Accepted Solutions
JenniferAcunto
Esri Regular Contributor

format-date(today(), '%Y/%m/%d %H:%M')

- Jen

View solution in original post

0 Kudos
8 Replies
ZacharySutherby
Esri Regular Contributor

Hello @vocono1953

Try placing format-date(today(), '%Y/%m/%d') in the calculate column of the XLSForm. Please see this documentation for more information on the format-date function. 

Thank you,
Zach
0 Kudos
vocono1953
Emerging Contributor

Hi Zach,

Thank you for the advice. I paced it in the calculate column and the same error remains. It rejects the use of Date() as input. It may not be possible to do this. Any more thoughts?

Thanks again.

HTS CROPPED_02.png

 

 

 

0 Kudos
IsmaelChivite
Esri Notable Contributor

today() should all be lowercase.

0 Kudos
vocono1953
Emerging Contributor

Thank you for your input, Ismael. However, it resulted in the same error.

Thanks anyway.

0 Kudos
JenniferAcunto
Esri Regular Contributor

The error shows ${Today()}. Did you put Today() as the question name? today() should be in the calculation column and your question name needs to be something like date_today and not a function.

It would be helpful at this point to include your survey XLS. 

- Jen
0 Kudos
vocono1953
Emerging Contributor

OK, Jennifer. Here is the XLS file. Please look at line 4.

Thanks for the help.

0 Kudos
JenniferAcunto
Esri Regular Contributor

format-date(today(), '%Y/%m/%d %H:%M')

- Jen
0 Kudos
vocono1953
Emerging Contributor

Very nice! That fixed it.

Thank you.

0 Kudos