New answers tagged

0 votes

Perform an LDAP search from a module

I think there's just a couple of calls missing, or at least the following works for me: if ($bridge->bind()) { $ldap = $bridge->get() ; $options = [] ; $entries = $ldap ->...
0 votes

How to validate numbers in a webform custom composite element

You can add regular expressions for elements in a custom composite by going to the General tab of the custom composite, then adding your regular expression in the custom properties field for an ...
  • 43
0 votes
Accepted

How to check if webform has a draft submission?

Ah found it... function MYMODULE_webform_submission_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { $form_object = $form_state->getFormObject(); $...
  • 280
0 votes

How to check if webform has a draft submission?

function MYMODULE_webform_submission_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { // Check if there's an existing draft submission. $webform_submission = $...
0 votes

What's the point of using Webform Node instead of directly using a Webform's form?

Under the hood, when you place a webform field under a Node (or any entity really) and make a submission through that entity, the entity is recorded in the submission. If you look at the ...
  • 1,387

Top 50 recent answers are included