Is there a module to conditionally set a fields value depending another field? is there a module that can set a value of a field which depends on the value of another field first? I know i can do it via js, but was wondering if something was out there already. conditional field module doesnt work in my case as it dosent set the value depending on the result of another.

example: I am creating a basic page and I have a select box field with the following: white/black/red. when i select red, i want the body to be filled in with 'yes' and if its black i want the body to be filled in with 'no'.
No other module available apart from conditional field, you need to create your own module with hook form_alter() and use some code like

&lt;?php
function wishlist_status_form($form_state) {
$form['status'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; 'Status',
    '#suffix' =&gt; '&lt;div id="my-wrapper"&gt;&lt;/div&gt;',
  );

$form['ajax-submit'] = array(
    '#type' =&gt; 'submit',
    '#ajax' =&gt; array(
        'callback' =&gt; 'wishlist_status_change',
        'wrapper' =&gt; 'my-wrapper',
    ),
    '#value' =&gt; t('Save'),
  );
return $form;
}

function wishlist_status_change($form, $form_state) {
    dpm($form_state, 'state callback');
    return 'test';
}
?&gt;