Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Let us assume that a dynamic form element with name "birth_day" yielded by javascript, anyway to get its value like $form_state->getValue("birth_day")? it seems this Adding dynamic form elements using AHAH can be used to do that,but that just teaches us how to create form element with PHP , then load it to html page. what if the form element must be generated by javascript code, what should we do ?
Comments
Comment #1
videni CreditAttribution: videni commentedComment #2
jungleNo activity for over 8 years. I am closing this. Please feel free to reopen if necessary.
Thanks!
Comment #3
junglePlease check form_api_example or ajax_example, it may have the feature you requested already