Do custom form validation
<Component name="Test" var.limit="{100}">
<Form
data="{{ spending: 0 }}"
onSubmit="(data) => console.log('Submitted:', data)"
>
<FormItem
label="Requested Amount (limit {limit})"
bindTo="total"
type="integer"
onValidate="{ (value) => value > 0 && value <= limit }"
/>
</Form>
</Component>
<Component name="Test" var.limit="{100}">
<Form
data="{{ spending: 0 }}"
onSubmit="(data) => console.log('Submitted:', data)"
>
<FormItem
label="Requested Amount (limit {limit})"
bindTo="total"
type="integer"
onValidate="{ (value) => value > 0 && value <= limit }"
/>
</Form>
</Component>