Skip to content

Free text minimum characters

FreeTextMinimumCharacters #

FreeTextMinimumCharacters(value: int)

Bases: RapidataSetting

Set the minimum number of characters a user has to type.

Parameters:

Name Type Description Default
value int

The minimum number of characters for free text.

required
Source code in src/rapidata/rapidata_client/settings/free_text_minimum_characters.py
def __init__(self, value: int):
    if value < 1:
        raise ValueError("The minimum number of characters must be greater than or equal to 1.")
    if value > 40:
        print(f"Warning: Are you sure you want to set the minimum number of characters at {value}?")
    super().__init__(key="free_text_minimum_characters", value=value)