webform select options validation unique I need to prevent two different users from choosing the same option from a webform select options component. In the validation only validation required available, no unique validation.

For example: my select contains the following: 1|1, 2|2, 3|3. AnnonUser1 chooses option 2. AnnonUser2 should be presented with 1|1 and 3|3.

How can I validate unique for this select options component. I tried webform validation, but it does not provide unique validation for select options component as well.
You can use a select list with a pre-loaded option list. In that "preload" callback you can alter available options.

Define a custom option list:

function mymodule_webform_select_options_info() {
  $items = array();

  $items['exclusive'] = array(
    'title' =&gt; t('Exclusive options'), 
    'options callback' =&gt; 'mymodule_webform_options_exclusive', 
  );

  return $items;
}


This callback is called every time the form is displayed, we can alter options here based on previous submissions:

function mymodule_webform_options_exclusive() {
  $default_options = array("One" =&gt; 1, "Two" =&gt; 2, "Three" =&gt; 3);
  $available_values = mymodule_webform_available_values(5); // nid of the webform

  return array_diff($default_options, $available_values);
}

function mymodule_webform_available_values($nid) {
  $submissions = webform_get_submissions(array("nid" =&gt; $nid));

  // get all the options values that were already submitted
  $values = array_values(array_map(function($submission) {
    return $submission-&gt;data[1][0]; // 1 == index of the field in the form
  }, $submissions));

  return $values;
}


Two things are hard-coded here: nid of the webform (5 here) and the index of the select widget (1 here). It might be possible to avoid hard-coding stuff, good luck!