M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
New Contributor
Posts: 4
Registered: ‎05-13-2019

How to use MaxValidator atribute?

[ Edited ]

Hi everyone,


I have a field with MaxLength="1000", but if you write more, when you want to save de form, an error message appears in the top bar, but you don't know which field is.

I tried to use <MaxValidator Message="Too long" Maximum="1000" /> in that Field but doesn't look do anything.


Any help or suggestion?


Thanks in advance.

Technical Evangelist
Posts: 807
Registered: ‎11-12-2015

Re: How to use MaxValidator atribute?

Hi rSanchez,


MaxValidator works against fields of type Integer, Number and DateTime only.

So as an example I have the following use of MaxValidator against the 'EVT_RIN' field

<Field Name="EVT_RIN" Type="Integer">
<MaxValidator Message="Input value is too long for this field" Maximum="5" />

 The result in the Mobile M.App where input exceeds the set Maximum