Possible to use AJAX form elements within reaction plugins options_form? ...since there's no $form_state as an argument.

My interface has a table of inputs, and I'd like to have an "Add New" now, and "Remove" operations column.

There a standard way to add items to a list, but it needs $form_state values...
http://api.drupal.org/api/examples/form_example!form_example_tutorial.in...
http://api.drupal.org/api/examples/form_example%21form_example_tutorial....

Comments

doublejosh’s picture

Title: Possible to use AJAX within options_form? » Possible to use AJAX within reactions options_form?
dobe’s picture

I accomplished this by using hook_form_alter. You can see a demonstration in the module Chardin

dobe’s picture

Issue summary: View changes

more clarity

bleen’s picture

Issue summary: View changes

I was able to do this in the sitecatalyst module without using a form_alter, but the lack of "form_state" prevents me from including a "sitecatalyst.admin.inc" file using form_load_include

paulocs’s picture

See also #1438886: Using AJAX in context condition form if you still need it.

paulocs’s picture

Status: Active » Fixed
paulocs’s picture

Status: Fixed » Closed (fixed)