Answers.Body: <p>I think its an issue with Webform module itself where it doesn't show relationship if you have relationship type label and name different.</p>
  
  <p>Developer from Circle-Interactive submitted a <a href="https://github.com/colemanw/webform_civicrm/pull/237" rel="nofollow noreferrer">fix</a> for this today. Can try applying <a href="https://patch-diff.githubusercontent.com/raw/colemanw/webform_civicrm/pull/237.patch" rel="nofollow noreferrer">patch</a> if it displays the relationship type on case tab of the webform?</p>
  
  <p>Thanks</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-25T19:58:59.103Z
Answers.Text: Bravo! I didn't realize the additional roles were supposed to show up there, but they do show up now, and the form makes the correct assignments accordingly.
Answers.UserDisplayName: choster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-25T19:59:43.760Z
Answers.Text: Cheers, glad to hear that the fix helped you :)
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-25T20:01:29.457Z
Answers.Text: Would it be possible for you to comment on PR(https://github.com/colemanw/webform_civicrm/pull/237) so that it gets merged into module?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-25T20:11:10.027Z
Answers.Text: Had to create a new GH account (I've only been using my regular one for work, but this is a side project). but it's done.
Answers.UserDisplayName: choster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-25T20:14:08.253Z
Answers.Text: Thanks a lot :)
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-26T00:40:22.527Z
Answers.Text: Nice catch, and the general name-vs-label problem has been driving me nuts for years. The problem is actually in core, but the PR is an interesting alternate way of dealing with it.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-25T19:47:06.450Z
Answers.LastActivityDate: 2019-07-25T19:47:06.450Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I have inherited a Drupal + CiviCRM 4.7 site which uses CiviCase to track applicants for an award. The applicant is the case client, and each case (nomination) has up to three judges assigned, who are supposed to submit scores on the case itself.</p>
  
  <p>On the existing Case Type "Nomination" I have created the Case Role "Judge [for]" to link the judge and the applicant.</p>
  
  <p>Right now, these assignments are handled manually, and I would like to set up a Webform CiviCRM interface for it; I cannot, however, find a way to add these role assignments. The webform has four contacts (for the applicant and each of up to three judges), but there is no way to set up the Judge role, only Case Client and Case Creator.</p>
  
  <p><a href="https://i.sstatic.net/OaPyX.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OaPyX.png" alt="Webform CiviCRM configuration for Cases"></a></p>
  
  <p>I tried setting this up in Rules using relationships, but it creates general relationships, not case relationships, and so the Judges do not have permission to view and modify the case.</p>
  
  <p>Did I miss a step?</p>
  
Tags: <drupal><webform-civicrm><civicase>
Title: Assigning case roles via webform?
ThreadText: # Assigning case roles via webform?
  
  (Asked by: username_0 on 2019-07-25)
  
  I have inherited a Drupal + CiviCRM 4.7 site which uses CiviCase to track applicants for an award. The applicant is the case client, and each case (nomination) has up to three judges assigned, who are supposed to submit scores on the case itself.
  
  On the existing Case Type "Nomination" I have created the Case Role "Judge [for]" to link the judge and the applicant.
  
  Right now, these assignments are handled manually, and I would like to set up a Webform CiviCRM interface for it; I cannot, however, find a way to add these role assignments. The webform has four contacts (for the applicant and each of up to three judges), but there is no way to set up the Judge role, only Case Client and Case Creator.
  
  [![Webform CiviCRM configuration for Cases](https://i.sstatic.net/OaPyX.png)](https://i.sstatic.net/OaPyX.png)
  
  I tried setting this up in Rules using relationships, but it creates general relationships, not case relationships, and so the Judges do not have permission to view and modify the case.
  
  Did I miss a step?
  
  **Tags:** drupal, webform-civicrm, civicase
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-07-25. Score: 3 | Accepted answer
  
  I think its an issue with Webform module itself where it doesn't show relationship if you have relationship type label and name different.
  
  Developer from Circle-Interactive submitted a [fix](https://github.com/colemanw/webform_civicrm/pull/237) for this today. Can try applying [patch](https://patch-diff.githubusercontent.com/raw/colemanw/webform_civicrm/pull/237.patch) if it displays the relationship type on case tab of the webform?
  
  Thanks
  
  Pradeep
  
  > **Comments:**
  > **username_0**: Bravo! I didn't realize the additional roles were supposed to show up there, but they do show up now, and the form makes the correct assignments accordingly.  
  > **username_1**: Cheers, glad to hear that the fix helped you :)  
  > **username_1**: Would it be possible for you to comment on PR(https://github.com/colemanw/webform_civicrm/pull/237) so that it gets merged into module?  
  > **username_0**: Had to create a new GH account (I've only been using my regular one for work, but this is a side project). but it's done.  
  > **username_1**: Thanks a lot :)  
  > **username_2**: Nice catch, and the general name-vs-label problem has been driving me nuts for years. The problem is actually in core, but the PR is an interesting alternate way of dealing with it.  
  
  ---
  
  