Skip to content

Fix Step 3 validation for empty list selection - #81

Merged
katsar0v merged 4 commits into
mainfrom
issue-72-fix-step3-validation-6698195851953838142
Dec 19, 2025
Merged

Fix Step 3 validation for empty list selection#81
katsar0v merged 4 commits into
mainfrom
issue-72-fix-step3-validation-6698195851953838142

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

This PR addresses issue #72 where submitting the campaign wizard step 3 without selecting a list caused a console error instead of a visible validation message.

Changes:

  • Modified admin/partials/compose-wizard.php:
    • Removed required attribute from #mskd-lists-select.
    • Added JavaScript validation to check for selected lists on form submission.
    • Displays an alert message "Please select at least one list." if no list is selected.

PR created automatically by Jules for task 6698195851953838142 started by @katsar0v

… in Step 3

Removes the 'required' attribute from the lists select element in the campaign wizard to prevent the "invalid form control is not focusable" console error caused by SlimSelect hiding the element.
Adds a custom JavaScript validation check in the form submission handler to ensure at least one list is selected and displays an alert if not.

Fixes #72
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

… in Step 3

Removes the 'required' attribute from the lists select element in the campaign wizard to prevent the "invalid form control is not focusable" console error caused by SlimSelect hiding the element.
Adds a custom JavaScript validation check in the form submission handler to ensure at least one list is selected and displays an alert if not.
Uses correct JS escaping for the alert message.

Fixes #72
… in Step 3

Removes the 'required' attribute from the lists select element in the campaign wizard to prevent the "invalid form control is not focusable" console error caused by SlimSelect hiding the element.
Adds a custom JavaScript validation check in the form submission handler to ensure at least one list is selected and displays an alert if not.
Uses correct JS escaping for the alert message.
Updates CHANGELOG.md.

Fixes #72
@katsar0v katsar0v linked an issue Dec 19, 2025 that may be closed by this pull request
@katsar0v
katsar0v marked this pull request as ready for review December 19, 2025 09:19
@katsar0v
katsar0v merged commit a5f6752 into main Dec 19, 2025
4 of 6 checks passed
@katsar0v
katsar0v deleted the issue-72-fix-step3-validation-6698195851953838142 branch December 19, 2025 09:19
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.

Step 3 not selected lists bug

1 participant