Select to view content in your preferred language

Arcade Visibility expressions

382
1
06-07-2023 04:58 AM
KELVINKARANJA
New Contributor

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?

0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

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.