title: Drupal Ctools Modal Handling
body: <p>I'm calling a function with URL <a href="http://mywebsite.org/param/ajax?ID=2" rel="nofollow">http://mywebsite.org/param/ajax?ID=2</a> which will return a form in html for which i use the following functions in the corresponfin callback function in my custom module.</p>
  
  <pre><code>$form_state = array(
    'ajax' =&gt; TRUE,
    'title' =&gt; t("Edit : $ID"),
  );
  $output = ctools_modal_form_wrapper('form_fn', $form_state);
  print ajax_render($output);
  drupal_exit();
  </code></pre>
  
  <p>I use this output to create a form inside a twitter bootstrap modal. The problem is when I'm submitting I get an ajax output again which I'm not able to handle. I would like to show a success message or failure based on the form_submit function. Is there any way I can show the output using the modal or on the original page which called the modal.</p>