Answers.Body: <p>When you are on the page for editing the form component, you can change the widget from select options to a textfield. Then the option to disable becomes available.</p>
  
  <p>However, it will display the <em>value</em> of the select, not the <em>label</em> - for example I tried with Name Prefix and for "Dr" it put "4". </p>
  
  <p>But if you are dealing with custom fields where you can set the values to be the same as the labels that shouldn't be a problem. </p>
  
  <p>Where it might cause a problem is activity status - could you get away without showing that?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-11T13:19:03.977Z
Answers.Text: Thanks for the suggestion. I did try this with the field, but I used ids for custom fields. There is already a lot of data in these fields and I wouldn't want to start messing about with field IDs as that has caused me grief in the past. I've also tried it with a date field, and the date displays, but you get an error and cannot submit the form.
Answers.UserDisplayName: Heather O.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-10T16:13:08.123Z
Answers.LastActivityDate: 2018-07-10T16:13:08.123Z
Answers.UserDisplayName: naomi
Answers.Body: <p>You will need to make sure your webform has more than one page.</p>
  
  <p>Make sure your select option is on page 1 of the webform.</p>
  
  <p>Select “Private” for the select option. This is presuming your reviewers don’t have webform results permission granted. This option will then be hidden for your reviewers.</p>
  
  <p>Then follow the steps as described <a href="https://civicrm.stackexchange.com/a/25761/6225">here</a></p>
  
  <p>The select option will then appear on any subsequent pages as a read only field. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-19T07:52:02.370Z
Answers.Text: Thanks for the suggestion. However, because select field values are numbers in CiviCRM, the number outputs, not the label. Using the individual prefix field as an example again, I would see 8 instead of Mrs.
Answers.UserDisplayName: Heather O.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T16:13:14.597Z
Answers.LastActivityDate: 2018-07-17T16:13:14.597Z
Answers.UserDisplayName: Anil
Body: <p>I've created a webform for reviewers to make a decision on a scientific abstract which is a CiviCRM activity.</p>
  
  <p>Their review is a second activity in CiviCRM, all linked within a case. </p>
  
  <p>All is working as needed using the activity1=[id] parameters in the url. </p>
  
  <p>However, I want reviewers to be able to see the details of the abstract activity to make their review decision, but not change them. Text fields / areas are simple as webforms allow you to disable (see image below), but select fields, this option doesn't appear.</p>
  
  <p>Is there a way I can disable select fields / make them uneditable but visible?</p>
  
  <p><a href="https://i.sstatic.net/jAht7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jAht7.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-10T12:54:32.790Z
Comments.Text: I've made a webform to reproduce what you are doing so as to help, but I can't get it to pull in the details of an existing activity at all! Can you let me know what steps you took to do this? Thanks
Comments.UserDisplayName: naomi
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-10T13:37:36.757Z
Comments.Text: You need to ensure you also include the contacts in the webform who are involved in the activity. So in my case, the current logged in user is the activity target contact and I've pulled in the activity source contact also through the url. So my url is www.example.org/node/1?cid2=123&activity1=456
Comments.UserDisplayName: Heather O.
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-10T13:38:24.480Z
Comments.Text: I should have commented that this is the case for any non-text field, so it could be something like the individual prefix field where this would be the case as well.
Comments.UserDisplayName: Heather O.
Tags: <webform-civicrm>
Title: Disable select fields in a drupal webform
ThreadText: # Disable select fields in a drupal webform
  
  (Asked by: username_0 on 2018-07-06)
  
  I've created a webform for reviewers to make a decision on a scientific abstract which is a CiviCRM activity.
  
  Their review is a second activity in CiviCRM, all linked within a case.
  
  All is working as needed using the activity1=[id] parameters in the url.
  
  However, I want reviewers to be able to see the details of the abstract activity to make their review decision, but not change them. Text fields / areas are simple as webforms allow you to disable (see image below), but select fields, this option doesn't appear.
  
  Is there a way I can disable select fields / make them uneditable but visible?
  
  [![enter image description here](https://i.sstatic.net/jAht7.png)](https://i.sstatic.net/jAht7.png)
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_1**: I've made a webform to reproduce what you are doing so as to help, but I can't get it to pull in the details of an existing activity at all! Can you let me know what steps you took to do this? Thanks  
  > **username_0**: You need to ensure you also include the contacts in the webform who are involved in the activity. So in my case, the current logged in user is the activity target contact and I've pulled in the activity source contact also through the url. So my url is www.example.org/node/1?cid2=123&activity1=456  
  > **username_0**: I should have commented that this is the case for any non-text field, so it could be something like the individual prefix field where this would be the case as well.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-07-10. Score: 1
  
  When you are on the page for editing the form component, you can change the widget from select options to a textfield. Then the option to disable becomes available.
  
  However, it will display the *value* of the select, not the *label* - for example I tried with Name Prefix and for "Dr" it put "4".
  
  But if you are dealing with custom fields where you can set the values to be the same as the labels that shouldn't be a problem.
  
  Where it might cause a problem is activity status - could you get away without showing that?
  
  > **Comments:**
  > **username_0**: Thanks for the suggestion. I did try this with the field, but I used ids for custom fields. There is already a lot of data in these fields and I wouldn't want to start messing about with field IDs as that has caused me grief in the past. I've also tried it with a date field, and the date displays, but you get an error and cannot submit the form.  
  
  ---
  
  ### Answer by username_2 on 2018-07-17. Score: 0
  
  You will need to make sure your webform has more than one page.
  
  Make sure your select option is on page 1 of the webform.
  
  Select “Private” for the select option. This is presuming your reviewers don’t have webform results permission granted. This option will then be hidden for your reviewers.
  
  Then follow the steps as described [here](https://civicrm.stackexchange.com/a/25761/6225)
  
  The select option will then appear on any subsequent pages as a read only field.
  
  > **Comments:**
  > **username_0**: Thanks for the suggestion. However, because select field values are numbers in CiviCRM, the number outputs, not the label. Using the individual prefix field as an example again, I would see 8 instead of Mrs.  
  
  ---
  
  