Hidden fields don't show in the form submission

Abierto
#6,393 12 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
laravel, php
Área
backend

Línea de trabajo

Start by locating the form submission view in the Statamic control panel and tracing how field visibility is applied; the issue does not name a file or test. Check the behavior for both fields configured with visibility: hidden and the Hidden fieldtype. Done means both appear in the submission view as read-only regardless of visibility.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

forms
Bug description

Fields that have visibility: hidden don't show up in the form submission view. I'm expecting all fields to show and be read_only in the form submission view, regardless of their visibility setting. Currently, fields are only visible when they have either visibility: visible or visibility: read_only.

How to reproduce
  1. Create a form
  2. Add three fields, each with a different visibility setting
  3. Create a form submission
  4. Recognize that the field with visibility: hidden is not showing in the CP
Logs

No response

Environment
Environment
Application Name: TDS Aarau
Laravel Version: 9.22.0
PHP Version: 8.1.6
Composer Version: 2.3.5
Environment: local
Debug Mode: ENABLED
URL: tdsaarau.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 8
Antlers: runtime
Version: 3.3.23 PRO

Statamic Addons
aerni/livewire-forms: 6.0.0
aryehraber/statamic-impersonator: 2.4.1
doublethreedigital/duplicator: 2.3.1
jacksleight/statamic-bard-mutator: 1.1.1
jacksleight/statamic-bard-texstyle: 1.0.3
jonassiewertsen/statamic-livewire: 2.9.0
spatie/statamic-responsive-images: 2.13.0
visuellverstehen/statamic-classify: 2.4.0
Installation

Fresh statamic/statamic site via CLI

Antlers Parser

runtime (new)

Additional details

This is also true for the Hidden fieldtype. I'm also expecting this field to be visible in the form submission.

Lenguaje dominante
PHP
Estrellas
4.9k
Forks
647
Merge medio
1 d 45 min
PR fusionados (30 d)
221

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de statamic/cms

Todos los issues de statamic/cms

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.