This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Show another content type fields on top of webform

I am new to drupal need help i have a content type Job where i have some custom fields 5-6. 
now i create a node for that content type with custom fields entry. for example that node is 4 now i created a webform.

Requirement is : show node id = 4 field data on top of webform which i created.

[![enter image description here][1]][1]

  [1]: https://i.stack.imgur.com/K9MDU.png

drupal modal api freezes

Hi, Im working to create a company website. This is my first time to use Drupal to create their website from scratch.

I'm encountering problem using the Drupal modal(https://www.drupal.org/docs/8/api/ajax-api/ajax-dialog-boxes)

<a class="use-ajax" data-dialog-options="{&quot;width&quot;:800}" data-dialog-type="modal" href="/node/6"><strong>TEST</strong></a>
 

"Add New Field" in modal popup

Hi

I'm trying to mimic the "add field" functionality in a modal pop-up(for learning purpose).

For that, I am replicating "FieldStorageAddForm.php" provided by Field Ui module in my custom form.

I have a another form where I have provided a link to open my new custom form to add a new field.

Here is the code:

taxonomy exposed filters

Hi everyone!,

I'm using drupal 8.8 and I'm looking for a way to display in my taxonomy exposed filters, only taxonomies terms which are related to contents(nodes). In other words i don't want to dysplay terms which are not related to content. I suppose that i have to make a hook_form_views_exposed_form_alter. But i don't know how to retrieve only the "good" terms.

Any help would be appreciate,

Thanks.

Managed_File form element does not seem to provide an ajax trigger event in Form API

I am able to get ajax working on other form elements, but for some reason I am unable to find the event for the managed_file element. Am I missing something?

$form['import_file'] = array(
  '#type' => 'managed_file',
  '#name' => 'import_file',
  '#title' => t('Select Import File'),
  '#size' => 20,
  '#description' => t('CSV only for now'),
  '#upload_validators' => $validators,
  '#upload_location' => 'public://easy_import',
  '#progress_indicator' => 'bar',

Why does the output of user_hash_password change each time?

Hi,
I'm using this code to generate a password valid for a Drupal7 site, with this code:

require_once '../includes/bootstrap.inc';
require_once '../includes/password.inc';
echo "Encrypted password: ".user_hash_password(trim('11111111111'));

Why does the result change every time I run the code?

Shouldn't the hash of "11111111111" always be the same?

Thank you very much

cld

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions