Answers.Body: <blockquote>
    <p>But once I go to case1=4 or 5 it does not work</p>
  </blockquote>
  
  <p>The case loaded on the webform is specified by passing the id in the form of <code>case{fieldset}=&lt;case_id&gt;</code>.</p>
  
  <p>For eg loading case id = 1 on fieldset 2 would be done by adding case2=1 in the URL.</p>
  
  <p>Also make sure the contact loaded on the same fieldset is a client of the case. For eg - if contact A is attached to caseid = 2. Add this in the URL to load the case on the form =</p>
  
  <pre><code>webform_url?cid1=&lt;contact_id&gt;&amp;case1=&lt;case_id&gt;
  </code></pre>
  
  <p>Similarly, if case is loaded on fieldset 2, the url would be -</p>
  
  <pre><code>webform_url?cid2=&lt;contact_id&gt;&amp;case2=&lt;case_id&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-04T21:38:42.967Z
Answers.Text: Thanks Jitendra. That mostly seems to work. However, when I am trying to update the case it is using my account instead of the cid account or signed in user account. Any ideas?
Answers.UserDisplayName: Sohal Khatwani
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-05T02:56:36.373Z
Answers.Text: Edit the component of the contact in the webform, i.e, From the webform tab, click edit link on the existing contact component which is loading your contact id, and check whether you have enabled any default value for the same.
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T11:42:39.227Z
Answers.LastActivityDate: 2019-02-27T11:42:39.227Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>Has anybody had success in using the CiviCRM Webform Case autocomplete tokens? We are using the cases for case management and would like to give users an option to update an existing case via a custom URL in a webform. It works for one user but does not work for another. Is there some permissions missing? Currently using ?case1=1 for Case ID one to prepopulate in the form. This works. But once I go to case1=4 or 5 it does not work. </p>
  
Tags: <webform-civicrm><civicase>
Title: Webform CiviCRM Case Tokens
ThreadText: # Webform CiviCRM Case Tokens
  
  (Asked by: username_0 on 2019-02-27)
  
  Has anybody had success in using the CiviCRM Webform Case autocomplete tokens? We are using the cases for case management and would like to give users an option to update an existing case via a custom URL in a webform. It works for one user but does not work for another. Is there some permissions missing? Currently using ?case1=1 for Case ID one to prepopulate in the form. This works. But once I go to case1=4 or 5 it does not work.
  
  **Tags:** webform-civicrm, civicase
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-02-27. Score: 1
  
  > But once I go to case1=4 or 5 it does not work
  
  The case loaded on the webform is specified by passing the id in the form of `case{fieldset}=<case_id>`.
  
  For eg loading case id = 1 on fieldset 2 would be done by adding case2=1 in the URL.
  
  Also make sure the contact loaded on the same fieldset is a client of the case. For eg - if contact A is attached to caseid = 2. Add this in the URL to load the case on the form =
  
  ```
  webform_url?cid1=<contact_id>&case1=<case_id>
  
  ```
  
  Similarly, if case is loaded on fieldset 2, the url would be -
  
  ```
  webform_url?cid2=<contact_id>&case2=<case_id>
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks username_1. That mostly seems to work. However, when I am trying to update the case it is using my account instead of the cid account or signed in user account. Any ideas?  
  > **username_1**: Edit the component of the contact in the webform, i.e, From the webform tab, click edit link on the existing contact component which is loading your contact id, and check whether you have enabled any default value for the same.  
  
  ---
  
  