Hello. I created a field map form river gauge reading. These readings will be collected twice a day (morning and evening) In the form I would like to restrict visibility for the evening reading input option when the morning readings are being recorded and vice versa. which expression do I need?
You can return the Hour of Now and if that's less than 12, make the field visible. Otherwise, it's hidden. For example, the morning field's visibility expression would look like this.
if (Hour(Now()) < 12) return True; return False;
For the evening field, you'd check if the hour was >= 12.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.