Engine Fields
Esta página enumera los tipos de campo de entrada y los atributos que añaden a los comunes.
TextField
{
"type" : "TextField" ,
"key" : "first_name" ,
"data_name" : "first_name" ,
"label" : "First name" ,
"display" : "default" ,
"description" : null ,
"description_mode" : null ,
"required" : false ,
"required_conditions" : null ,
"visible" : true ,
"visible_conditions" : null ,
"read_only" : false ,
"read_only_conditions" : null ,
"default_value" : null ,
"pattern" : null ,
"pattern_description" : null ,
"supporting_image" : false ,
"supporting_image_path" : null ,
"supporting_image_display" : null
}
Atributos adicionales:
pattern: expresión regular para validar la entrada.
pattern_description: explicación opcional del patrón.
NumericField
{
"type" : "NumericField" ,
"key" : "age" ,
"data_name" : "age" ,
"label" : "Age" ,
"display" : "default" ,
"description" : null ,
"description_mode" : null ,
"required" : true ,
"required_conditions" : null ,
"visible" : true ,
"visible_conditions" : null ,
"read_only" : false ,
"read_only_conditions" : null ,
"default_value" : null ,
"min" : 0 ,
"max" : 120 ,
"format" : "integer" ,
"supporting_image" : false ,
"supporting_image_path" : null ,
"supporting_image_display" : null
}
Atributos adicionales:
min: valor mínimo permitido.
max: valor máximo permitido.
format: integer o float.
SingleChoiceField
{
"type" : "SingleChoiceField" ,
"key" : "city" ,
"data_name" : "city" ,
"label" : "City" ,
"display" : "default" ,
"description" : null ,
"description_mode" : null ,
"required" : true ,
"required_conditions" : null ,
"visible" : true ,
"visible_conditions" : null ,
"read_only" : false ,
"read_only_conditions" : null ,
"default_value" : null ,
"allow_other" : false ,
"choices" : [
{ "label" : "Paris" , "value" : "paris" },
{ "label" : "Rome" , "value" : "rome" }
],
"supporting_image" : false ,
"supporting_image_path" : null ,
"supporting_image_display" : null ,
"is_searchable" : false ,
"is_searchable_mode" : null
}
Atributos adicionales:
choices: array de objetos { label, value }.
allow_other: habilita una opción de texto libre.
is_searchable: habilita la búsqueda en listas largas.
is_searchable_mode: por ahora, default o null.
MultiChoiceField
{
"type" : "MultiChoiceField" ,
"key" : "foods" ,
"data_name" : "foods" ,
"label" : "Favorite foods" ,
"display" : "checkbox" ,
"description" : null ,
"description_mode" : null ,
"required" : false ,
"required_conditions" : null ,
"visible" : true ,
"visible_conditions" : null ,
"read_only" : false ,
"read_only_conditions" : null ,
"default_value" : [ "pasta" ],
"allow_other" : false ,
"choices" : [
{ "label" : "Pasta" , "value" : "pasta" },
{ "label" : "Pizza" , "value" : "pizza" }
],
"supporting_image" : false ,
"supporting_image_path" : null ,
"supporting_image_display" : null ,
"is_searchable" : false ,
"is_searchable_mode" : null
}
Atributos adicionales:
choices: array de objetos { label, value }.
allow_other: habilita elementos de texto libre.
display: default o checkbox.
BooleanField
{
"type" : "BooleanField" ,
"key" : "newsletter" ,
"data_name" : "newsletter" ,
"label" : "Subscribe?" ,
"display" : "default" ,
"description" : null ,
"description_mode" : null ,
"required" : false ,
"required_conditions" : null ,
"visible" : true ,
"visible_conditions" : null ,
"read_only" : false ,
"read_only_conditions" : null ,
"default_value" : null ,
"choices" : [
{ "label" : "Yes" , "value" : "yes" },
{ "label" : "No" , "value" : "no" }
],
"third_option_enabled" : false ,
"supporting_image" : false ,
"supporting_image_path" : null ,
"supporting_image_display" : null
}
Atributos adicionales:
choices: normalmente dos opciones (sí/no).
third_option_enabled: habilita una tercera opción neutra.
DateField
{
"type" : "DateField" ,
"key" : "visit_date" ,
"data_name" : "visit_date" ,
"label" : "Visit date" ,
"display" : "default" ,
"description" : null ,
"description_mode" : null ,
"required" : false ,
"required_conditions" : null ,
"visible" : true ,
"visible_conditions" : null ,
"read_only" : false ,
"read_only_conditions" : null ,
"default_value" : "now"
}
Atributos adicionales:
default_value: now (o null).
TimeField
{
"type" : "TimeField" ,
"key" : "visit_time" ,
"data_name" : "visit_time" ,
"label" : "Visit time" ,
"display" : "default" ,
"description" : null ,
"description_mode" : null ,
"required" : false ,
"required_conditions" : null ,
"visible" : true ,
"visible_conditions" : null ,
"read_only" : false ,
"read_only_conditions" : null ,
"default_value" : "now"
}
Atributos adicionales:
default_value: now (o null).
Choice values
Los valores de las opciones deben cumplir ^[a-z0-9_]+$. Si una opción no define un value,
form0-core genera uno a partir de la etiqueta.
Sea cual sea la forma de asignar un valor, el registro enviado usa el mismo formato: SingleChoice/Boolean usa choice_value y other_value; MultiChoice usa choices_value y other_value. Consulta el contrato de actualización de valores .
Last modified on November 2, 2026