Select to view content in your preferred language

Can I Add Validation to Forms in Map Viewer?

263
2
12-20-2024 01:32 PM
Labels (2)
ZorbaConlen1
Frequent Contributor

Hi. Wondering if it's possible to add validation to forms in Map Viewer? I'm able to do some basic validation with required fields, min/max length, etc., but I'd like to add validation for things like email, phone number and like that.

Is this feasible?

Thx

0 Kudos
2 Replies
MobiusSnake
MVP Regular Contributor

I don't know of a way to prevent someone from submitting edits following validation the way you can with apps like Survey123, but Map Viewer forms do let you create Info elements that can be conditionally visible based on the result of an Arcade function.  You could create a function that performs validation and if it fails, make a warning with a descriptive message visible to the user.

You could also use these types of functions to write to a hidden field indicating whether someone submitted a record that had one or more validation failures.

ZorbaConlen1
Frequent Contributor

Good thought. Thanks.

0 Kudos