TransWikia.com
  1. All Categories
  2. Drupal Answers

Drupal Answers : Recent Questions and Answers (Page 8)

Find answers to your questions about Drupal Answers or help others by answering their Drupal Answers questions.

Submit form and disable submission button

I want to disable the submit button after it is clicked to prevent multiple submissions. I have:$form['show'] = ['#type' => 'submit', '#value' => $textforsubmitbutton, ...

Asked on 12/04/2021 by matt9292

7 answer

Some tokens show as "missing name or description" in status report

Looking at a Drupal 7.43 maintenance project, my status report lists the following issue for Token 7.x-1.6:The following tokens or token types are missing required name and/or description information:$info['types']['date']$info['tokens']['node']['url']$info['tokens']['file']['size']$info['tokens']['user']['url']$info['tokens']['date']['custom']The...

Asked on 12/04/2021

1 answer

Remove one of the two "Apply to selected items" submit buttons with Node Bulk Operations

If you make a view and add the Node operations bulk form, two "Apply to selected items" boxes are automatically generated like this: ...

Asked on 12/04/2021

1 answer

How to do views random sort for all the items in a pager?

I created five nodes:ApplePearKiwiOrangeCheeseThen I created a view with the following settings:Show content of type FruitDisplay 1 item per page, use mini pagerSort: Global: RandomNow I flip through the nodes...

Asked on 12/04/2021

2 answer

How to check if an entity is referenced before deleting?

Is there a module or a way to use Rules to make sure that a parent node isn't referenced by a child node before deleting the parent? In my...

Asked on 12/02/2021 by HaloFX

2 answer

How to add onBlur attribute to ZIP code field in Address Field

In order to control the input format in the ZIP code field in the dynamic address fields provided by the Address Field module (I use it in Drupal Commerce) I...

Asked on 12/02/2021 by TBJ

1 answer

Add class to {{ link }} twig attribute

I'm trying to apply a button class to the {{ link }} attribute in code below. <span{{attributes}}><a class="usa-button"{{ link }}</span>It displays correctly however the markup is not correct. I...

Asked on 12/02/2021

3 answer

How to add a new user badge after earning a certain number of user points?

I'm using the User Badges and User Points modules. I want that when a user earns a certain number of user points, the user's old badge...

Asked on 11/30/2021 by Surendra Prasad

2 answer

Remove field attributes using hook_form_alter()

How do I remove form element attributes from a form using hook_form_alter()? For example, given the following HTML markup, how do I remove form-text?<input type="text" class="form-text required" maxlength="255"...

Asked on 11/30/2021 by SenthilKumar

1 answer

How to send email to submitter in a webform?

I have a webform and i want to send by mail this webform to submitter.For the moment, i created an hidden field with token [current-user:mail] and i chose this...

Asked on 11/30/2021 by cel57

2 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP