itk-dev/os2forms_user_field_lookup

Use user field data in webforms.

dev-main 2021-11-05 08:53 UTC

This package is auto-updated.

Last update: 2022-05-05 10:11:00 UTC


README

Use user data in forms.

Installation

Require it with composer:

composer require "itk-dev/os2forms_user_field_lookup"

Enable the module:

drush pm:enable os2forms_user_field_lookup

Usage

Add a User Field Element to a form and select a user field name on the element. When the form is displayed by an authenticated user, the field will be populated with the value of the selected field.

Elements

  • User Field Element
  • User Field Element (checkbox)

Coding standards

Run phpcs with the provided configuration:

composer coding-standards-check

// Apply coding standards
composer coding-standards-apply