Skip to content

ContactForm: Hide subject dropdown when only one contact is available#201

Open
Codencode wants to merge 2 commits intoPrestaShop:developfrom
Codencode:contactform-hide-subject-when-single-contact
Open

ContactForm: Hide subject dropdown when only one contact is available#201
Codencode wants to merge 2 commits intoPrestaShop:developfrom
Codencode:contactform-hide-subject-when-single-contact

Conversation

@Codencode
Copy link
Contributor

Questions Answers
Description? When only one contact is available in the Contact Form module, the subject dropdown is no longer displayed.
Instead of rendering a <select> with a single option, the module now automatically sets the id_contact value using a hidden input.
This improves the user experience by removing an unnecessary selection while preserving the expected form behavior.
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket?
How to test? - In the admin panel, go to Shop Parameters > Contact
- Delete the contacts, leaving only one
- In the front office, go to the Contact page
- The Subject Heading label and its related select dropdown should not be displayed
Related PRs PrestaShop/contactform#88

Before

Classic-before

After

Classic-after

@Codencode Codencode requested review from a team, Hlavtox and Touxten February 12, 2026 13:26
Touxten
Touxten previously approved these changes Feb 12, 2026
tblivet
tblivet previously approved these changes Feb 17, 2026
@Codencode Codencode force-pushed the contactform-hide-subject-when-single-contact branch from 3fc03bb to 5ba3b06 Compare February 17, 2026 15:29
@Touxten Touxten added the Waiting for QA Status: Waiting for QA feedback label Feb 17, 2026
@ps-jarvis ps-jarvis moved this from Ready for review to To be tested in PR Dashboard Feb 17, 2026
@SiraDIOP SiraDIOP self-assigned this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Waiting for QA Status: Waiting for QA feedback

Projects

Status: To be tested

Development

Successfully merging this pull request may close these issues.

4 participants

Comments