Hidden fields don't show in the form submission

Offen
#6,393 12 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
laravel, php
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
PHP
Sterne
4.9k
Forks
647
Ø Merge
1 T. 45 Min.
Gemergte PRs (30 T.)
221

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus statamic/cms

Alle Issues in statamic/cms

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.