Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Swisspass

No security coverage Under active development 4 sites

This module adds a new input field to Drupal's Webforms specifically for SwissPass numbers. It automatically formats the input and validates it on both the client and server sides to ensure accuracy.

The SwissPass Number Webform Element is a custom Drupal module that enhances Webforms with a specialized input field for SwissPass numbers. It provides automatic formatting and validation to ensure correct input of SwissPass numbers.

Features

  • Custom Webform element for SwissPass numbers
  • Automatic formatting of input (XXX-XXX-XXX-X)
  • Client-side and server-side validation
  • Seamless integration with Drupal Webforms

Requirements

- Drupal 10.3 or above
- Webform module

Installation

Classic installation as other modules. See the documentation.

Configuration

After installation, a new "SwissPass Number" element will be available when creating or editing Webforms.
To use:

1. Create or edit a Webform
2. Add a new field
3. Select "SwissPass Number" from the element type list
4. Configure the field as needed

Technical details

The module consists of:
- Custom form element (SwissPassNumber)
- Webform element plugin (SwissPassWebformElement)
- JavaScript for client-side formatting
- PHP validation for server-side checks

Benefits

+ Improved data quality for SwissPass numbers
+ Enhanced user experience with auto-formatting
+ Reduced errors in SwissPass number submissions
+ Time-saving for form creators and processors

Contributing & support

Contributions are welcome! Please submit issues and pull requests.

For support, please create an issue !

Ask your assistant about Swisspass

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Sep 2024
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta5 Pre-release 10–11 Feb 2, 2026
1.0.0-beta4 Pre-release 10–11 Oct 14, 2024
1.0.0-beta3 Pre-release 9–10 Sep 25, 2024
1.0.0-beta2 Pre-release 9–10 Sep 24, 2024
1.0.0-beta1 Pre-release Sep 24, 2024
1.0.x-dev Dev 10–11 Sep 24, 2024