Select to view content in your preferred language

Passing a date via a field URL parameter || format issues

517
2
Jump to solution
09-23-2024 08:11 AM
Sven_Harpering
Esri Contributor

Hey all,

we created a form using the Survey123 Web Designer and then integrated this form into an ArcGIS Dashboard using the "Embedded content" widget. The form should be called when a feature has been selected in the map. This works so far! 🙂

Our observation is now the following: If the feature contains a date including the time, it will only be transferred from the feature to the form via a field URL parameter if the settings of my AGOL account are set to English, as well as the time format is also set to English. In the other case, here a German profile with the German time formats, the transfer does not work and the field in the form remains empty. Is this a known limitation?

Best regards
Sven

Passionate about GIS and on the journey as an instructor for analytical insights.
0 Kudos
1 Solution

Accepted Solutions
abureaux
MVP Frequent Contributor

(Disclaimer: Nothing I've encountered personally. I only use NA settings)

Have you inspected the output yet? The easiest method may just be to feed the date into a text field and see what changes. Once you know that, you can feed the date into a calculate which modifies the date into a format the Date question can handle, and then feed that calculate into the Date.

View solution in original post

2 Replies
abureaux
MVP Frequent Contributor

(Disclaimer: Nothing I've encountered personally. I only use NA settings)

Have you inspected the output yet? The easiest method may just be to feed the date into a text field and see what changes. Once you know that, you can feed the date into a calculate which modifies the date into a format the Date question can handle, and then feed that calculate into the Date.

Sven_Harpering
Esri Contributor

Hi @abureaux,

thank you for your reply. I have tested your idea with the text field. I think I know where the problem is. Using the German profile I am getting the following output:

Sven_Harpering_0-1727361884876.png

As you can see: Day and month are switched comparing the textual output and the output in the date question. If I am now getting a date like this:

Sven_Harpering_1-1727361966278.png

The date question is empty. This makes sense, because the system switches the day and month in the background and tries to set the value 16 as a month. That is not valid.

So I think I will maybe report a bug.

Thx for your help.

Best

Sven

Passionate about GIS and on the journey as an instructor for analytical insights.
0 Kudos