Double
The Double field collects floating-point numerical values (decimal values). It is commonly used for amounts, prices, or any measurement that requires precision beyond integers.

Properties
Property | Value | Description |
---|---|---|
Type | Double | UI component type |
Group | Field | Part of the "Field" group in the UI schema |
Identifier | 11 | Unique element ID |
Preview | ✓ | See image preview above |
Value | Y | Accepts user-entered decimal values |
Mandatory | Y | Required for submission if flagged |
Error | Y | Supports validation errors |
Min | Y | Can define minimum accepted value |
Max | Y | Can define maximum accepted value |
Read-only | Y | Can display a static, non-editable value |
Text, Icon | Y | Can display an associated label or icon |
Event | Y | Triggers on user input or validation |
Shade | Y | Supports shaded style for visual hierarchy |
Children | Not applicable | |
List | Not a list container |
Usage Example
<DoubleInput
label="Amount (USD)"
min={0}
max={9999.99}
required
onChange={handleAmountChange}
/>
SDK Integration
Used in the Visit Took Place (VTP) wizard during appointment summary entry. It appears as the price field when doctors add custom charges:
Method: /account/reset-password
Used with:
charge-price~{x}
: The unit price or cost of an additional item or treatment.- Supports calculation of total fee based on quantity and other contextual inputs.
Example UI Placement
Level | ID | Type | Value | Description |
---|---|---|---|---|
3 | charge-price~0 | Double | Charge unit amount | Editable field for entering price |
Notes
- Use this field for monetary values, such as doctor fees, add-ons, and custom charges.
- Supports localisation and currency formatting as per region.
- Compatible with validation rules and error messaging.