Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Validate a field while modifying another

$
0
0

Hi,

I have a forum with two text fields, field A of size 1000 chars and field B of size 255 chars.

I am duplicating/mirroring content of field A to field B while field A is being modified.

I want to show an error message and mark field B in red when it exceeds 255 chars while field A is being modified.

How do I go about that?

I have tried validateWrite(), and tried to call validateField() method while field A is being modified, it kind of works, I get the correct error message, however the wrong field is marked in red (field A is marked in read instead of field B)


Viewing all articles
Browse latest Browse all 72043


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>