Skip to main content

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

PropertyValueDescription
TypeDoubleUI component type
GroupFieldPart of the "Field" group in the UI schema
Identifier11Unique element ID
PreviewSee image preview above
ValueYAccepts user-entered decimal values
MandatoryYRequired for submission if flagged
ErrorYSupports validation errors
MinYCan define minimum accepted value
MaxYCan define maximum accepted value
Read-onlyYCan display a static, non-editable value
Text, IconYCan display an associated label or icon
EventYTriggers on user input or validation
ShadeYSupports shaded style for visual hierarchy
ChildrenNot applicable
ListNot 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

LevelIDTypeValueDescription
3charge-price~0DoubleCharge unit amountEditable 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.