Enhancement: Hide field with when clause when parent field its when clause is not met #565

Closed
opened 2026-10-05 02:53:29 +02:00 by adam · 0 comments
Owner

So it is the following behavior that we need to get fixed:

image

Steps:

  • You publish the page
  • The state field its condition is met and shows up
  • Change the state field its value to superseded
  • The superseded_by field shows up
  • Set the page as draft -> the state field disappears, but the superseded_by field is still shown

Outcome

The wanted outcome should be that the state and superseded_by should not be shown in the UI.

Originally posted by @estruyf in https://github.com/estruyf/vscode-front-matter/discussions/702#discussioncomment-7576654

So it is the following behavior that we need to get fixed: <img width="370" alt="image" src="https://github.com/estruyf/vscode-front-matter/assets/2900833/15e013dc-8cce-4ea6-a580-fb144de20349"> Steps: - You publish the page - The `state` field its condition is met and shows up - Change the `state` field its value to `superseded` - The `superseded_by` field shows up - Set the page as draft -> the `state` field disappears, but the `superseded_by` field is still shown **Outcome** The wanted outcome should be that the `state` and `superseded_by` should not be shown in the UI. _Originally posted by @estruyf in https://github.com/estruyf/vscode-front-matter/discussions/702#discussioncomment-7576654_ <!-- github-sync-id:1994788516 -->
adam closed this issue 2026-10-05 02:53:29 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#565