<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Is it possible to access other forms on the same page via an #ajax element? I have a case where I need to have a Clear button on a form
that not only clears out the form it's on, but also clears out
checkboxes in other forms and clears data from ctools_object_cache.<div><div class="post-text" itemprop="description"><p>The page is a custom search page created by the apachesolr module.
In the sidebar I have multiple blocks that are just 'checkboxes' form
elements of taxonomy terms (each block is a separate vocabulary). The
checkboxes are used to select terms, which are written to
ctools_object_cache using #ajax in the form when selected. What I need
is to have a Clear button (or link) on the search form that does a few
things:</p>
<ul>
<li>Clears the search field</li>
<li>Deletes items from ctools_object_cache</li>
<li>Deselects the checkboxes in the sidebar forms</li>
<li>Selects a specific checkbox in another sidebar block (labeled "All")</li>
</ul><p>Is it possible to do this using a #ajax button with Forms API? Or do
I need to just write it as a separate Drupal behavior in jQuery? I
know Drupal forms can be handled in jQuery, but from what I've seen, it's only for elements in the same form, not separate forms, even on the same page.</p><p>Thanks.</p><div>Steve</div></div></div></body></html>