Hidden fields don't show in the form submission

オープン
#6,393 コメント 12 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
laravel, php
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PHP
スター
4.9k
フォーク
647
平均マージ
1日 45分
マージ済み PR(30日)
221

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

statamic/cms のほかの issue

statamic/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。