Answers.Body: <p>We did nothing special, the custom fields showed up for contact in the webform settings? Like so (on the CiviCRM tab in the Webform):
  <a href="https://i.sstatic.net/ii6Fv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ii6Fv.png" alt="enter image description here"></a></p>
  
  <p>And if you then click 'Yes' you can use the custom fields?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T12:09:10.130Z
Answers.Text: Great! That's exactly what I was looking for, thanks!
Answers.UserDisplayName: GN12AD45
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T11:49:14.023Z
Answers.LastActivityDate: 2015-09-08T11:49:14.023Z
Answers.UserDisplayName: ErikH - CiviCooP
Answers.Body: <p>You can make a field view only by editing the field checking the Disabled box near the bottom of the list of options.  (IMHO, not a very good name for the box)</p>
  
  <p><a href="https://i.sstatic.net/DnL2z.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/DnL2z.jpg" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T08:45:45.717Z
Answers.Text: This is what we plan to do as we don't want the field to be editable, just 'view only' but it's getting the field to appear in the drupal form in the first place as the field in which the VAT is recorded per individual is a custom field in Civi. The field is also changeable according to the record in Civi so it can't just be a case of adding a pre-filled disabled field in drupal webform as it needs to change with the Civi record.
Answers.UserDisplayName: GN12AD45
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-02T17:23:36.633Z
Answers.LastActivityDate: 2015-09-02T17:23:36.633Z
Answers.UserDisplayName: Paul-Tahoe
Answers.Body: <p>Are you using the Drupal module Webform CiviCRM Integration? It will allow you to show the custom data as far as I know?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-02T14:39:11.323Z
Answers.Text: Yes we do have that module. It allows you to create custom fields in Civi which you can put into the Drupal webform which, when filled in the webform, updates the custom fields in Civi. But we do not want to update a custom field. We just want to be able to view the Civi data already in a custom field via the drupal webform. Currently I cannot find a way to view Civi custom field data in Drupal webforms.
Answers.UserDisplayName: GN12AD45
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-02T14:39:52.877Z
Answers.Text: If you know how to show the custom data, could you please explain how you do this?
Answers.UserDisplayName: GN12AD45
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-03T06:49:28.177Z
Answers.Text: If it is just displaying the data, could you not use Views to display CiviCRM data? Or do you also need to input data so you need Webform? If you want to use custom tables in Views you will have to add the tables to the Drupal settings.php (like to core CiviCRM tables). Alternative is to add some Drupal customization to show the data on the Webform.
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T08:52:20.967Z
Answers.Text: Unfortunately we need the form. The staff member will type the name of the individual into an 'existing contact field' on the drupal webform which will display the information from Civi, then they will fill in the activity via the drupal webform which, when submitted, will attach as an activity to the Civi contact record which they selected in the 'existing contact field'. The field we need to be viewable in the drupal form is a 'custom field' in Civi which will tell the staff member what VAT is associated with that contact and will therefore determine what they put in the activity.
Answers.UserDisplayName: GN12AD45
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T08:53:35.287Z
Answers.Text: I thought perhaps it would be some customization but wanted to check in case there was an easy way that I wasn't aware of.
Answers.UserDisplayName: GN12AD45
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T10:31:41.420Z
Answers.Text: As far as I know Webform - CiviCRM integration will show custom fields? At least it did on the project we used it?
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T11:05:33.943Z
Answers.Text: OK, we have now found that we don't need to display the information in this form but if you remember how you did it it would be good to find a solution to this issue for future reference. Thanks
Answers.UserDisplayName: GN12AD45
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T11:47:48.630Z
Answers.Text: We did nothing special, the custom fields showed up for contact in the webform settings? Like so:
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-02T10:49:57.407Z
Answers.LastActivityDate: 2015-09-02T10:49:57.407Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>We have a situation where staff will be filling in a Drupal webform in order to record an activity on a contact within Civi.</p>
  <p>We are looking for a way to pull out some data from Civi into the webform by way of typing the contact into the 'Existing Contact' field. We know how to pull out the standard info about an existing contact (eg. Display Name, Address, Postcode etc.) Which gets displayed in this box on the webform.
  <a href="https://i.sstatic.net/pLSfB.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pLSfB.png" alt="front view of drupal webform" /></a></p>
  <hr />
  <p>But we want to be able to pull out a 'custom field' that we added to the contact in Civi which describes how much VAT that contact is paying. In Civi the field is either populated with '20%' or '0%' and we need it displayed on the form so that the staff member filling in the activity knows how much VAT that contact pays without having to go into the Civi contact to see the amount and then back out to finish the form.</p>
  <p>So we are thinking we just need to find a way to get the custom fields to show in the following list so that we can select it for view. Is this right? It doesn't need to be editable in anyway, just a view.
  <a href="https://i.sstatic.net/QDGLq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/QDGLq.png" alt="edit component view of existing contact field" /></a></p>
  
Tags: <drupal><contacts><webform-civicrm>
Title: Custom drupal contact display fields?
ThreadText: # Custom drupal contact display fields?
  
  (Asked by: username_0 on 2015-09-02)
  
  We have a situation where staff will be filling in a Drupal webform in order to record an activity on a contact within Civi.
  
  We are looking for a way to pull out some data from Civi into the webform by way of typing the contact into the 'Existing Contact' field. We know how to pull out the standard info about an existing contact (eg. Display Name, Address, Postcode etc.) Which gets displayed in this box on the webform.
  [![front view of drupal webform](https://i.sstatic.net/pLSfB.png)](https://i.sstatic.net/pLSfB.png)
  
  ---
  
  But we want to be able to pull out a 'custom field' that we added to the contact in Civi which describes how much VAT that contact is paying. In Civi the field is either populated with '20%' or '0%' and we need it displayed on the form so that the staff member filling in the activity knows how much VAT that contact pays without having to go into the Civi contact to see the amount and then back out to finish the form.
  
  So we are thinking we just need to find a way to get the custom fields to show in the following list so that we can select it for view. Is this right? It doesn't need to be editable in anyway, just a view.
  [![edit component view of existing contact field](https://i.sstatic.net/QDGLq.png)](https://i.sstatic.net/QDGLq.png)
  
  **Tags:** drupal, contacts, webform-civicrm
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-09-08. Score: 3 | Accepted answer
  
  We did nothing special, the custom fields showed up for contact in the webform settings? Like so (on the CiviCRM tab in the Webform):
  [![enter image description here](https://i.sstatic.net/ii6Fv.png)](https://i.sstatic.net/ii6Fv.png)
  
  And if you then click 'Yes' you can use the custom fields?
  
  > **Comments:**
  > **username_0**: Great! That's exactly what I was looking for, thanks!  
  
  ---
  
  ### Answer by username_2 on 2015-09-02. Score: 1
  
  You can make a field view only by editing the field checking the Disabled box near the bottom of the list of options. (IMHO, not a very good name for the box)
  
  [![enter image description here](https://i.sstatic.net/DnL2z.jpg)](https://i.sstatic.net/DnL2z.jpg)
  
  > **Comments:**
  > **username_0**: This is what we plan to do as we don't want the field to be editable, just 'view only' but it's getting the field to appear in the drupal form in the first place as the field in which the VAT is recorded per individual is a custom field in Civi. The field is also changeable according to the record in Civi so it can't just be a case of adding a pre-filled disabled field in drupal webform as it needs to change with the Civi record.  
  
  ---
  
  ### Answer by username_1 on 2015-09-02. Score: 0
  
  Are you using the Drupal module Webform CiviCRM Integration? It will allow you to show the custom data as far as I know?
  
  > **Comments:**
  > **username_0**: Yes we do have that module. It allows you to create custom fields in Civi which you can put into the Drupal webform which, when filled in the webform, updates the custom fields in Civi. But we do not want to update a custom field. We just want to be able to view the Civi data already in a custom field via the drupal webform. Currently I cannot find a way to view Civi custom field data in Drupal webforms.  
  > **username_0**: If you know how to show the custom data, could you please explain how you do this?  
  > **username_1**: If it is just displaying the data, could you not use Views to display CiviCRM data? Or do you also need to input data so you need Webform? If you want to use custom tables in Views you will have to add the tables to the Drupal settings.php (like to core CiviCRM tables). Alternative is to add some Drupal customization to show the data on the Webform.  
  > **username_0**: Unfortunately we need the form. The staff member will type the name of the individual into an 'existing contact field' on the drupal webform which will display the information from Civi, then they will fill in the activity via the drupal webform which, when submitted, will attach as an activity to the Civi contact record which they selected in the 'existing contact field'. The field we need to be viewable in the drupal form is a 'custom field' in Civi which will tell the staff member what VAT is associated with that contact and will therefore determine what they put in the activity.  
  > **username_0**: I thought perhaps it would be some customization but wanted to check in case there was an easy way that I wasn't aware of.  
  > **username_1**: As far as I know Webform - CiviCRM integration will show custom fields? At least it did on the project we used it?  
  > **username_0**: OK, we have now found that we don't need to display the information in this form but if you remember how you did it it would be good to find a solution to this issue for future reference. Thanks  
  > **username_1**: We did nothing special, the custom fields showed up for contact in the webform settings? Like so:  
  
  ---
  
  