Select to view content in your preferred language

How to pull year from a date field to update another field

802
4
Jump to solution
02-10-2023 01:54 AM
RachelS
Frequent Contributor

Hi,

Is it possible to pull the year out of a date field to update another field And make that field hidden?

I can do this in Survey123 but not sure how to do it in Field Maps.

 

Thanks

Rachel

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

Ah, yeah. At 10.9.1, I don't think you can configure forms that way.

- Josh Carlson
Kendall County GIS

View solution in original post

0 Kudos
4 Replies
jcarlson
MVP Esteemed Contributor

In Arcade, that would just be Year($feature.somefield). When you say "and make that field hidden", which field are you referring to? The date field, or the other one being updated?

In general, as long as the field is available in a service, you can configure the Smart Form to only show the particular fields you want edited, while still accessing other attributes.

- Josh Carlson
Kendall County GIS
0 Kudos
RachelS
Frequent Contributor

Thanks Josh,

Is this added in the 'Create Expression' section below Conditional Visibility? (see attached)

I've added it in there but when I tried it in the app , it remains blank.

I find I have to add the field to the form to add the expression and then that field is visible to users in the app.

I'm also using Enterprise 10.9.1, incase these options are only available in later versions.

0 Kudos
jcarlson
MVP Esteemed Contributor

Ah, yeah. At 10.9.1, I don't think you can configure forms that way.

- Josh Carlson
Kendall County GIS
0 Kudos
RachelS
Frequent Contributor

Thanks Josh,

I'll have to wait until we upgrade.

 

0 Kudos