Skip to content

apostrophecms/apostrophe-forms-phone-field-widgets

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This module adds a phone number field supporting full validation of international phone number formats. It is meant for use alongside the apostrophe-forms module.

When using it, you must configure the formWidgets option to apostrophe-forms to include it, as well as all other form widgets you wish to use. See the apostrophe-forms documentation.

Configuration

// in app.js
modules: {
  'apostrophe-forms': {
    formWidgets: {
      // other fields go here
      'apostrophe-forms-phone-field': {}
    }
  },
  'apostrophe-forms-phone-field-widgets'
}

The user will be prompted to select a country and the country code will be automatically supplied when they do. The user may also skip that step and enter their own country code. If the phone number is supplied without a country code the user is required to provide it.

About

This module adds a phone number field supporting full validation of international phone number formats. It is meant for use alongside the apostrophe-forms module.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published