5
votes
Node ID caching on hook_form_alter()
When you get route parameters you need this cache context:
$form['#cache']['contexts'][] = 'route';
You might also want to add the node cache data so that the form gets invalidated when the node is ...
3
votes
Node ID caching on hook_form_alter()
The problem is that the webform gets cached with the $node data from the first node visited, but you need the webform to be unique per node.
You can unset the cache keys for your webform - this will ...
1
vote
How do I get the submitter of a webform submission?
OK. I think I can answer myself: $webform_submission->getOwnerId() is what I need.
1
vote
Accepted
Webform Conditional based on previous webform entry
Configure the select element containing "pre-test" and "post-test" options to have "Prepopulate" checked. Remember the machine name of the element, that will be the query ...
1
vote
How do I include composer.libraries.json in root composer.json without using the wikimedia/composer-merge-plugin plugin?
The alternate ways are documented. I think the one you would prefer is:
Execute drush webform:composer:update, to update your Drupal installation's composer.json to include the Webform module's ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
webforms × 24877 × 617
8 × 451
forms × 303
views × 139
emails × 130
theming × 127
nodes × 93
entities × 82
rules × 80
tokens × 75
ajax × 72
users × 71
hooks × 65
6 × 64
javascript × 63
files × 58
9 × 36
database × 34
i18n-l10n × 28
datetime × 27
civicrm × 22
blocks × 21
importing-exporting × 20
redirection × 19