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

videni’s picture

Issue summary: View changes
jungle’s picture

Status: Active » Closed (outdated)

No activity for over 8 years. I am closing this. Please feel free to reopen if necessary.

Thanks!

jungle’s picture

Please check form_api_example or ajax_example, it may have the feature you requested already