Closed laurencefass closed 5 years ago
i can access fields in html.twig files. can i do the same from js files? do i need to pass variables to Drupal object or is that already done for all fields by module?
No, I'm afraid you can't.
thanks. Is there a way to access Drupal's field values from withing Javascript?
i can access fields in html.twig files. can i do the same from js files? do i need to pass variables to Drupal object or is that already done for all fields by module?