Skip to content

Clear signature field when reopening the Record List Add modal#1920

Open
sanjacornelius wants to merge 1 commit into
developfrom
bugfix/FOUR-32231
Open

Clear signature field when reopening the Record List Add modal#1920
sanjacornelius wants to merge 1 commit into
developfrom
bugfix/FOUR-32231

Conversation

@sanjacornelius

@sanjacornelius sanjacornelius commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

This PR fixes an issue where the Signature component kept its previous value after closing the Record List Add modal with the Cancel button and reopening it.

The modal now emits a record-list-add-modal-hidden event when it is hidden so components can react and reset their state as needed.

Solution

  • Emit record-list-add-modal-hidden on window.ProcessMaker.EventBus when the Add modal is hidden.

How to Test

  1. Configure a Record List.
  2. Add a Signature component to the Record List’s Add screen.
  3. Preview the Record List.
  4. Click Add.
  5. Fill out the Signature field.
  6. Click Cancel to close the modal.
  7. Reopen the Add modal.
  8. Verify the Signature field is cleared.

Related Tickets & PRs

ci:deploy

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

When the add-record modal is hidden, emit a "record-list-add-modal-hidden" event on window.ProcessMaker.EventBus so other components can react (e.g. refresh or cleanup). The handler still resets addItem to initFormValues and clears the addRenderer submitted state.
@cypress

cypress Bot commented Jul 17, 2026

Copy link
Copy Markdown

screen-builder    Run #2300

Run Properties:  status check passed Passed #2300  •  git commit f49bc5f1b1: Clear signature field when reopening the Record List Add modal
Project screen-builder
Branch Review bugfix/FOUR-32231
Run status status check passed Passed #2300
Run duration 09m 50s
Commit git commit f49bc5f1b1: Clear signature field when reopening the Record List Add modal
Committer Sanja
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 389
View all changes introduced in this branch ↗︎

@processmaker-sonarqube

Copy link
Copy Markdown

@vladyrichter

Copy link
Copy Markdown

QA server K8S was successfully deployed https://ci-9594c19b23.engk8s.processmaker.net

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.

2 participants