Tips, tricks, articles, rankings for Drupal developers

Trick of the Day

Passing a parameter to the Drupal webform through the URL

ballester

If you need to fill in the value of a field of our Drupal webform from a value of the URL parameter we can do it easily.

You only need to set the default value of the field with the code will allow to obtain the corresponding parameter value.

Use %get[name_of_url_variable] for version webform 7.x-3x or uses [current-page:query:service_name] for version 7.x-4.x.

0
Comment count: 0

Recent Token Tips & Tricks

Drupal 8 mobile initiative was ideated long back in Oct 2011 when Drupal 8 roadmap was being created. It was highlighted in John Albin Wilkins’ blog post. John has been leading the initiative since its inception.

If you need to fill in the value of a field of our Drupal webform from a value of the URL parameter we can do it easily.

The important part resides in the parent GUID field mapping. There is also the option to link from the name of the father but I do not recommend it because the name could be repeated between terms.

One of the first checks that I recommend is to use the Drupal module Hacked!.

Edit the value of the value of a Drupal variable may be necessary when variable is not shown in the backoffice or Drupal module can not edit its value.

New post

Drupal 7 Core incorporated a series of modules designed to support multilingual websites but if you really want to build a Drupal 7 with multiple lang...