New answers tagged webforms
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 = $...
- 132
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
Related Tags
webforms × 25287 × 617
8 × 451
forms × 302
views × 143
emails × 131
theming × 127
nodes × 94
entities × 81
rules × 80
tokens × 75
users × 72
ajax × 72
javascript × 67
hooks × 67
6 × 64
files × 58
9 × 56
database × 34
i18n-l10n × 28
datetime × 27
civicrm × 22
blocks × 21
importing-exporting × 21
redirection × 20