viaSocket Help

Number Field


#

What is a Number Field?

A Number Field is used to collect numeric input from users like integers and decimal values.


#

When to use a Number Field?

Use a Number Field whenever the API expects Integer, Decimal or Number as a data type for the parameter.

Good examples:

Field Name

Example Value

Amount

250

Age

28

Score

95


#

How to add a Number Field?

#

Step 1 - Fill the Field Details

After selecting Number, fill in the field details:

Property

Value

Example

Type

number

number

Label

Field name

Selling Price

Key

API parameter name

selling_price

Required

Yes/No

Yes

Placeholder

Example

2500

Help

Text displayed on hover for user guidance (Optional)

Enter the selling price of the item

[
  {
    "key": "selling_price",
    "help": "Enter the selling price for this item",
    "type": "number",
    "label": "Selling Price",
    "required": true,
    "placeholder": "2500"
  }
]

Additionally, attributes like defaultValue, visibilityCondition, list, limit, can be used as per need and requirement.

#

Step 5 - Save the field

The field is automatically saved when you click anywhere outside the field settings panel.