Hidden fields don't show in the form submission

Ouverte
#6,393 12 commentaires 1 réaction 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
laravel, php
Domaine
backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
PHP
Étoiles
4.9k
Forks
647
Merge moyen
1 j 45 min
PR mergées (30 j)
221

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de statamic/cms

Toutes les issues de statamic/cms

Issues similaires

Plus d'issues PHP

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.