Skip to content
Advertisement

Tag: drupal

How to pass a value from javascript to drupal 8 form?

I need to pass a value from Javascript to my drupal 8 form. I’ve added a hidden field to the form. Javascript is calculating a value and writes it into the field. But how can I get to the value within the function submitForm()? Is using a hidden field even the right approach? If so, what do I have to

Advertisement