Download the PHP package itk-dev/os2forms-cpr-lookup without Composer
On this page you can find all versions of the php package itk-dev/os2forms-cpr-lookup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download itk-dev/os2forms-cpr-lookup
More information about itk-dev/os2forms-cpr-lookup
Files in itk-dev/os2forms-cpr-lookup
Package os2forms-cpr-lookup
Short Description For this package there is no description available.
License
Informations about the package os2forms-cpr-lookup
OS2Forms CPR Lookup
Query the Danish for CPR register for Drupal Webforms. This module uses the service SF1520 from Serviceplatformen. Information and documentation can be obtained by following the link.
Installation
Require it with composer:
Enable it with drush:
Add the following configuration:
Usage
This module provides functionality for querying the danish CPR register and showing the result in webforms.
This can be done in two ways:
- By adding a query element which when changed performs a query and populates other elements with the result.
- By requiring personal NemLog-in login on the form (set Edit form > Settings > Third party settings > OS2Forms > OS2Forms NemID settings > Webform type to “Personal”) and having elements pre-filled based on data fetched from the CPR service.
Note: You cannot use both methods on the same form, i.e. you cannot have some elements filled by a dynamic lookup based on an “CPR Element” and have other elements filled based on an authenticated users’ data.
The elements provided:
- CPR Element - Element which queries the Danish CPR register when changed.
- CPR Name Element - This is populated with the name from the above mentioned query result.
- CPR Address Element - This is populated with the address from the result.
- CPR Street Element - This is filled with the name of the street from the result.
- CPR House Number Element - This is filled with the house number from the result.
- CPR Side Element - This is filled with the side from the result.
- CPR Floor Element - This is filled with the floor from the result.
- CPR Postal Code Element - This is filled with the postal code from the result.
- CPR City Element - This is filled with the city from the result.
Coding standards
Check coding standards (run composer install
to install the required tools):
Apply coding standards: