Skip to content

Conversation

@iamibrahimriaz
Copy link
Collaborator

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

Add dynamic reviewDeleteTitle messages in widget trash confirmation modal based on the page context (submission form, single listing contents, or search form). This provides users with more accurate information about what will be affected when deleting a widget/field.

Tasks:

  • Add fieldKey prop to Form_Builder_Widget_Component to track page context
  • Implement computed reviewDeleteTitle property with context-specific messages
  • Pass fieldKey through component hierarchy (Form_Builder_Field ->
    Form_Builder_Widget_Group_Component -> Form_Builder_Widget_Component
    )
  • Update confirmation modal to display context-appropriate deletion warnings

Messages:

  • Submission form: field will also remove it from the single listing page and search form.
  • Single listing contents: widget will remove it from the single listing page.
  • Search form: field will remove it from the search form.

Before:

After:

Any linked issues

Fixes #

Checklist

@Armanul46 Armanul46 added this to the v8.5.7 milestone Dec 30, 2025
@iamibrahimriaz iamibrahimriaz changed the title feat(form-builder): add context-aware delete confirmation messages improve: Dynamic field delete confirmation messages based on page context Dec 30, 2025
…into improve/widget-trash-modal-description
…into improve/widget-trash-modal-description
…into improve/widget-trash-modal-description
@Armanul46 Armanul46 modified the milestones: v8.5.7, v8.5.8 Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants