Answers.Body: <p>Well, what you can do is to add in your webform a bit of javascript to automatically click on the submit button, eg in the body of the webform (or anyway you want to add some javascript):</p>
  
  <pre><code>&lt;script&gt;
  jQuery(function($){
    $(".form-submit").click();
  });
  &lt;/script&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-22T11:06:28.043Z
Answers.LastActivityDate: 2016-01-25T12:12:31.153Z
Answers.LastEditDate: 2016-01-25T12:12:31.153Z
Answers.UserDisplayName: Xavier
Body: <p>I created a new participant registration status called "Attending" for participants to let me know that they are actually planning to come to the event.</p>
  
  <p>I currently do this by emailing registered participants a link to a Drupal Webform (that includes: ?cid1={contact.contact_id}&amp;{contact.checksum}) </p>
  
  <p>Once they click the link, I have the form set so that if they click the submit button it changes their registration status from registered to attending without having to fill out any fields. </p>
  
  <p>Is there a way to accomplish this just by having them click on the link in the email, without having to go to the webform and click submit?</p>
  
Tags: <civievent><webform-civicrm>
Title: Change event participant status by clicking on a link (via civimail)
ThreadText: # Change event participant status by clicking on a link (via civimail)
  
  (Asked by: username_0 on 2016-01-21)
  
  I created a new participant registration status called "Attending" for participants to let me know that they are actually planning to come to the event.
  
  I currently do this by emailing registered participants a link to a Drupal Webform (that includes: ?cid1={contact.contact\_id}&{contact.checksum})
  
  Once they click the link, I have the form set so that if they click the submit button it changes their registration status from registered to attending without having to fill out any fields.
  
  Is there a way to accomplish this just by having them click on the link in the email, without having to go to the webform and click submit?
  
  **Tags:** civievent, webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-01-22. Score: 2 | Accepted answer
  
  Well, what you can do is to add in your webform a bit of javascript to automatically click on the submit button, eg in the body of the webform (or anyway you want to add some javascript):
  
  ```
  <script>
  jQuery(function($){
    $(".form-submit").click();
  });
  </script>
  
  ```
  
  
  ---
  
  