Skip to content

Keyboard numeric

KeyboardNumericSetting #

KeyboardNumericSetting(value: bool = True)

Bases: RapidataSetting

Changes the virtual keyboard input type to numeric-only for free text input fields. Useful when expecting numeric answers.

Parameters:

Name Type Description Default
value bool

Whether to show a numeric keyboard. Defaults to True.

True
Source code in src/rapidata/rapidata_client/settings/keyboard_numeric.py
def __init__(self, value: bool = True):
    if not isinstance(value, bool):
        raise ValueError("The value must be a boolean.")

    super().__init__(key="keyboard_numeric", value=value)