Ejemplo 1: Formulario Simple - Registro de Usuario

Formulario básico con inputs, validaciones y botón de envío.

Estructura Visual

┌────────────────────────────────────────┐
│  Registro de Usuario                   │
├────────────────────────────────────────┤
│  [Nombre Completo____________]         │
│  [Email__________________] [@___]      │
│  [Teléfono_______________]             │
│  [Fecha Nacimiento____] [Calend]       │
│  □ Acepto términos y condiciones       │
│  [Registrarse] [Cancelar]              │
└────────────────────────────────────────┘

JSON Completo

{  "id": 100,  "name": "form_RegistroUsuario",  "controls": "[{\"name\":\"form_RegistroUsuario\",\"component\":\"MainFormComponent\",\"x\":0,\"y\":0,\"rows\":0,\"cols\":0,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"form_RegistroUsuario\",\"label\":\"Registro de Usuario\",\"font\":\"Quicksand\",\"fontSize\":12,\"fontColor\":\"#000000\",\"backgroundColor\":\"#FFFFFF\",\"enabled\":true,\"visible\":true},{\"class\":\"FormPropertiesComponent\",\"showMessageOnSuccess\":true,\"messageOnSuccess\":\"Usuario registrado correctamente. Recibirá un email de confirmación.\",\"showMessageOnError\":true,\"messageOnError\":\"Error al registrar usuario. Verifique los datos.\",\"closeOnSuccess\":true,\"cols\":6,\"rowHeight\":70,\"theme\":\"bizuit\",\"modalType\":\"swal\",\"themeUseDefaultSettings\":true},{\"class\":\"CustomCodePropertiesComponent\",\"events\":[]},{\"class\":\"CustomStylesPropertiesComponent\",\"cssCode\":\"\"}],\"children\":[{\"name\":\"LblTitulo\",\"component\":\"LabelComponent\",\"x\":0,\"y\":0,\"rows\":1,\"cols\":6,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"LblTitulo\",\"label\":\"Registro de Usuario\",\"value\":\"Registro de Usuario\",\"font\":\"Quicksand\",\"fontSize\":20,\"fontColor\":\"#667eea\",\"fontWeight\":\"bold\",\"enabled\":true,\"visible\":true}]},{\"name\":\"TxtNombre\",\"component\":\"InputTextboxComponent\",\"x\":0,\"y\":1,\"rows\":1,\"cols\":3,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"TxtNombre\",\"label\":\"Nombre Completo\",\"value\":\"\",\"tooltip\":\"Ingrese su nombre y apellido\",\"enabled\":true,\"visible\":true},{\"class\":\"BindingsPropertiesComponent\",\"primaryDataSource\":{\"source\":\"parameter\",\"name\":\"NombreCompleto\",\"mode\":\"bidirectional\",\"type\":\"Parameter\",\"parameterType\":1}},{\"class\":\"RestrictionsPropertiesComponent\",\"required\":true,\"dataType\":\"String\",\"lengthType\":\"Variable\",\"minLength\":3,\"maxLength\":100},{\"class\":\"ValidationsPropertiesComponent\",\"match\":\"ANY\",\"errorMessage\":\"\",\"rules\":[]},{\"class\":\"CustomCodePropertiesComponent\",\"events\":[]}]},{\"name\":\"TxtEmail\",\"component\":\"InputTextboxComponent\",\"x\":3,\"y\":1,\"rows\":1,\"cols\":3,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"TxtEmail\",\"label\":\"Email\",\"value\":\"\",\"enabled\":true,\"visible\":true},{\"class\":\"BindingsPropertiesComponent\",\"primaryDataSource\":{\"source\":\"parameter\",\"name\":\"Email\",\"mode\":\"bidirectional\"}},{\"class\":\"RestrictionsPropertiesComponent\",\"required\":true,\"dataType\":\"String\",\"regexPattern\":\"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\\\.[a-zA-Z]{2,}$\"},{\"class\":\"ValidationsPropertiesComponent\",\"match\":\"ANY\",\"errorMessage\":\"Email inválido\",\"rules\":[]}]},{\"name\":\"TxtTelefono\",\"component\":\"InputTextboxComponent\",\"x\":0,\"y\":2,\"rows\":1,\"cols\":3,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"TxtTelefono\",\"label\":\"Teléfono\",\"value\":\"\",\"enabled\":true,\"visible\":true},{\"class\":\"BindingsPropertiesComponent\",\"primaryDataSource\":{\"source\":\"parameter\",\"name\":\"Telefono\",\"mode\":\"bidirectional\"}},{\"class\":\"RestrictionsPropertiesComponent\",\"required\":false,\"dataType\":\"String\",\"regexPattern\":\"^[0-9]{10}$\"}]},{\"name\":\"DtpFechaNacimiento\",\"component\":\"DatePickerComponent\",\"x\":3,\"y\":2,\"rows\":1,\"cols\":3,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"DtpFechaNacimiento\",\"label\":\"Fecha de Nacimiento\",\"enabled\":true,\"visible\":true},{\"class\":\"BindingsPropertiesComponent\",\"primaryDataSource\":{\"source\":\"parameter\",\"name\":\"FechaNacimiento\",\"mode\":\"bidirectional\"}},{\"class\":\"RestrictionsPropertiesComponent\",\"required\":true,\"format\":\"Short\",\"dateTimeMaxValueType\":\"Relative\",\"dateTimeMaxValueRelativeOperation\":\"Subtract\",\"dateTimeMaxValueRelativePeriod\":\"Years\",\"dateTimeMaxValueRelativeValue\":18}]},{\"name\":\"ChkTerminos\",\"component\":\"CheckboxComponent\",\"x\":0,\"y\":3,\"rows\":1,\"cols\":6,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"ChkTerminos\",\"label\":\"Acepto los términos y condiciones\",\"value\":\"false\"},{\"class\":\"RestrictionsPropertiesComponent\",\"required\":true,\"dataTypeBooleanControl\":\"Boolean\",\"checkValue\":\"true\",\"uncheckValue\":\"false\"},{\"class\":\"ValidationsPropertiesComponent\",\"match\":\"ALL\",\"errorMessage\":\"Debe aceptar los términos\",\"rules\":[{\"name\":\"Validar\",\"conditions\":[{\"controlName\":\"ChkTerminos\",\"operator\":\"equals\",\"value\":{\"type\":\"constant\",\"value\":\"true\"}}]}]}]},{\"name\":\"BtnRegistrar\",\"component\":\"ButtonComponent\",\"x\":2,\"y\":4,\"rows\":1,\"cols\":2,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"BtnRegistrar\",\"label\":\"Registrarse\"},{\"class\":\"ButtonPropertiesComponent\",\"backgroundColor\":\"primary\",\"classType\":\"mat-raised-button\",\"icon\":\"person_add\"},{\"class\":\"CustomCodePropertiesComponent\",\"basicEvent\":1,\"executeValidation\":true,\"events\":[]}]},{\"name\":\"BtnCancelar\",\"component\":\"ButtonComponent\",\"x\":4,\"y\":4,\"rows\":1,\"cols\":2,\"props\":[{\"class\":\"BasicPropertiesComponent\",\"name\":\"BtnCancelar\",\"label\":\"Cancelar\"},{\"class\":\"ButtonPropertiesComponent\",\"backgroundColor\":\"warn\",\"classType\":\"mat-stroked-button\",\"icon\":\"cancel\"},{\"class\":\"CustomCodePropertiesComponent\",\"basicEvent\":5,\"events\":[]}]}]}]",  "dataSources": "[{\"name\":\"Parámetros y Variables\",\"isPrimary\":true,\"primarySchema\":[{\"label\":\"NombreCompleto\",\"type\":\"parameter\",\"dataType\":\"String\"},{\"label\":\"Email\",\"type\":\"parameter\",\"dataType\":\"String\"},{\"label\":\"Telefono\",\"type\":\"parameter\",\"dataType\":\"String\"},{\"label\":\"FechaNacimiento\",\"type\":\"parameter\",\"dataType\":\"Date\"}],\"events\":[]}]",  "version": 1,  "published": false,  "description": "Formulario de registro de usuario simple",  "category": "Usuarios",  "subcategory": "Registro"}

Ejemplo 2: Formulario Completo - Solicitud de Crédito

Formulario complejo con múltiples componentes, data sources SQL y REST API, validaciones cruzadas y lógica personalizada.

Estructura Visual

┌─────────────────────────────────────────────────────────┐
│  🏦 SOLICITUD DE CRÉDITO PERSONAL                       │
├─────────────────────────────────────────────────────────┤
│  ┌─ Datos Personales ─────────────────────────────────┐│
│  │ [Nombre__________] [Apellido__________]            ││
│  │ [DNI_______] [Tipo Doc▼] [Fecha Nac___]           ││
│  │ [Email___________] [Teléfono__________]            ││
│  └────────────────────────────────────────────────────┘│
│  ┌─ Datos del Préstamo ──────────────────────────────┐│
│  │ [Tipo Crédito▼] [Monto $______] [Cuotas__]        ││
│  │ [Destino Fondos▼]                                  ││
│  │ ○ Empleado  ○ Autónomo  ○ Desempleado             ││
│  └────────────────────────────────────────────────────┘│
│  ┌─ Productos Seleccionados ─────────────────────────┐│
│  │ │Código│Descripción       │Cantidad│Precio│Total │││
│  │ ├──────┼──────────────────┼────────┼──────┼──────┤││
│  │ │PROD1 │Préstamo Personal │   1    │10000 │10000 │││
│  │ │PROD2 │Seguro de Vida    │   1    │ 500  │ 500  │││
│  │ └──────┴──────────────────┴────────┴──────┴──────┘││
│  └────────────────────────────────────────────────────┘│
│  [📄 Adjuntar DNI] [📄 Adjuntar Recibo]                │
│  □ Acepto términos y condiciones                        │
│  Total: $10,500.00                                      │
│  [💾 Guardar] [✅ Enviar Solicitud] [❌ Cancelar]      │
└─────────────────────────────────────────────────────────┘

JSON Completo (Simplificado para legibilidad)

Nota: Este JSON está deserializado y formateado para comprensión. En producción debe estar serializado.