pub fn set_field_type(
    field: Option<FIELD>,
    fieldtype: FieldType
) -> Result<(), NCurseswFormError>
Expand description

Declares a data type for a given form field. This is the type checked by validation functions.

If field is None then the default value is set.