XForms/Limiting Length

Motivation
You want to warn a user that an input control exceeds a specified length.

Method
We will use the XForms "action" element and conditionally display a message if the string-length is larger than 50 characters. The following action should be placed within the control.