Recently Active Questions
88,144 questions
1 vote
2 answers
5k views
Import xml data
I am new to drupal. To import xml data into drupal, i followed these steps given in this website which i mentioned it below. http://www.drupalprogrammer.co.uk/2012/12/use-feeds-module-to-import-xml-...
0 votes
1 answer
1k views
Add custom submission buttons to navigate through different wizard pages
I need to navigate the user through different pages of a multistep webform. I have added additional submit button to the webform using following code. function mymodule_form_alter(&$form, \Drupal\...
4 votes
3 answers
863 views
User contributed image gallery, per node
Working on a new Drupal 7 based site. Put together a few sites back in the 5 days, but lots has changed. I'm looking to allow users to upload images to a particular content type, and to show those ...
0 votes
2 answers
599 views
How to add custom class in body tag on form submit?
I have created custom module with custom form, in which I have added input type select. Form submission is working fine, but I wanted set select option value as custom class for BODY tag.
2 votes
4 answers
925 views
how to rewrite field in view
I have following Html code, I want to rewrite two field .1st is [field_poster_hover_image] and 2nd is [field_team_image] .This is my HTML Code. <div class="thumb thumb-type-1"> ...
0 votes
1 answer
591 views
How can I disable Webform submit button after being clicked
I've been trying to resolve an issue with no luck. For some reason there are no submission indicators out of the box with D7 Webforms and from what i've found it doesn't look like they have any plans ...
1 vote
1 answer
575 views
How to update the search title and page title depending on facet options
I am using Search Api Views module to list some publications. User can filter them using facets. For example he can look for publications only in Kenya. I want to update the title of my page (view) ...
0 votes
1 answer
840 views
Default value to 'datetime' field in form loaded from the database
I want to display the datetime field on my Drupal 8 form with some date loaded from the database, but the front end always shows empty fields as if no data has been provided. I tried several ...
4 votes
1 answer
461 views
Migrate taxonomy with depth
I need to migrate a CSV file of 3000 Taxonomy terms with depth of 5 levels deep. This is a small sample of the CSV comma-separated values file. About Us About Us, Our Programs About Us, Our History, ...
0 votes
1 answer
1k views
how to print a form in twig where a variable number of form elements have been printed already?
I am using a Twig template to render a form that has a variable number of elements. Each element's key in the form is sequential integer. So in my template, I can do this: {% for item in form|children ...
1 vote
1 answer
585 views
Contextual filter : Override Title
The content architecture of the site which I am working on is something like:- Song - Content type Genre - Vocabulory Song has an entity reference field which points to the terms in "Genre" vocabulary....
0 votes
1 answer
1k views
User registration without email address OR registration with pseudo-email address
I am programmatically creating users for the roles Parent (Adult) & Child (minor). During registration, minors (Children) typically will not have email addresses but Drupal user registration ...
2 votes
1 answer
4k views
How to use Webform values in Rules?
I am using the Webform Rules module and I created an event 'After submitting webform', and an action 'Fetch webform submissions'. When I add an action 'Show a message on the site', I get all the ...
0 votes
1 answer
637 views
Programmatically adding line items to Ubercart order
Can someone please suggest how do we add line items to an Ubercart order in Drupal 8? When I look at the references in Ubercart module, I get this: // Load line items... has to be last after ...
1 vote
1 answer
519 views
How do I replace part of a webform component label with a variable token?
I have webform component labels like this: Did [your pet] have any illnesses? and I want to replace [your pet] with a variable token? Do I need to write a custom module or can I do this by editing ...