Skip to main content
Version: 2.1.4

ListFormDecimalNumber

3p-core v2.1.4


3p-core / ListFormDecimalNumber

Variable: ListFormDecimalNumber

const ListFormDecimalNumber: React.FunctionComponent<IListFormDecimalNumberProps>

A React component that renders a decimal number input field for SharePoint list forms.

This field uses a string input to support formatting and validation for decimal values, and synchronizes the value with the form state as a number.

Param

Props of type IListFormDecimalNumberProps

Returns

A styled Fluent UI TextField bound to the SharePoint list form context.

Remarks

  • Only allows valid decimal strings with up to numberOfDecimalPlaces digits.
  • Converts between string and number formats internally to avoid float rounding issues.
  • Integrates with form state via the formStateKey.