Skip to content

Money Box

MoneyBox is NumericBox with a money-oriented visual treatment. It has the same XPath binding, locale-aware parsing, Decimals, ShowDigits, validation, and numeric client limits as NumericBox. It does not attach a currency code, exchange rate, or currency conversion to the value; model those separately in the form data.

XML Fields

XPath identifies the amount field. Decimals and ShowDigits control number formatting; Size controls width. RequiredForGroup, PlaceHolder, Hints, and Rules have the same validation and help roles as NumericBox. MoneyBox stores only the numeric amount: include a separate currency field and use form rules when the amount and currency must be validated together.

Example

1
2
3
4
5
<MoneyBox XPath="Invoice/Amount" Decimals="2" ShowDigits="True" Size="Medium" RequiredForGroup="">
    <PlaceHolder><![CDATA[]]></PlaceHolder>
    <Hints><![CDATA[]]></Hints>
    <Rules />
</MoneyBox>