Form API
Drupal 8: Form API - Weight Fields
Currently, I am working on a custom form that generates products on the fly for a custom purchase order implementation.
For this Drupal 8 commerce website, the product variations have a required weight field which was needed in the custom form.
Here is an example of the weight field.
Drupal 8: Form API Autocomplete Filtering By Role
I have been creating a lot of custom forms for purchase order creation and custom shipping methods, using Drupal 8's form API.
For the latest form, I needed to add an autocomplete field for user accounts that filtered by a specific role.
In the example below I only needed to show users with the role of 'Supplier'
Example:
Video Update! Drupal Backend and Commerce Development
Looking for a Drupal developer? Specifically a Drupal Commerce or a backend developer? Then you came to the right place.
I am a backend Drupal developer with extensive experience working with Drupal Commerce for both Drupal 7 and 8 for over seven years now.