[ユーザ管理] 条件付き表示項目を必須項目として設定できるようにしました #2299
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
背景
ユーザー管理の項目設定において、「条件付き表示」と「必須」の設定が相互排他となっており、「特定の条件を満たした場合のみ表示され、かつその場合は入力必須とする」といった柔軟な項目設定ができませんでした。
目的
条件付き表示項目に必須設定を組み合わせることで、より柔軟なフォーム設計を可能にします。
変更内容
1. 制約の緩和
2. バリデーションロジックの改善
3. フロントエンド対応
required属性を動的に追加/削除します4. UI改善
5. 対応範囲の拡大
使用例
トリガー項目: 「参加形態」(ラジオボタン: オンライン / 対面)
条件付き必須項目: 「会場までの交通手段」
レビュー完了希望日
機能追加のため急ぎません
関連Pull requests/Issues
#2297 (循環参照チェック機能)
参考
なし
DB変更の有無
無し
チェックリスト