<div dir="ltr"><div class="" itemprop="text" style="margin:0px 5px 5px 0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;width:660px;word-wrap:break-word;line-height:1.3;color:rgb(68,68,68);font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif"><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both">I have a node form that contains a checkboxes field with options NULL at the time the form is displayed.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both">During node_validate, if certain criteria is met, an array of options (checkboxes) is created, and the form needs to be redisplayed with the checkboxes as part of it.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both">I've tried setting #options = the new array in the $form, in $form_state[original_form], etc all to no avail. The field doesn't change.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both">I also set one checkbox in the field at the start, so that I could find it in the $form and $form_state structures, changed where I found it to the new options array, and again, no change. I am setting $form_state[rebuild] to true, and even tried explicitly calling for the form to be rebuilt.</p><div><br></div></div><div><br></div>-- <br><div class="gmail_signature">---<div><a href="http://drupal.org/user/367108" target="_blank">drupal.org/user/367108</a></div><div><a href="http://linkedin.com/in/jeffrgreenberg" target="_blank">linkedin.com/in/jeffrgreenberg</a></div><div><a href="http://accidentalcoder.com" target="_blank">accidentalcoder.com</a> / <a href="http://ayendesigns.com" target="_blank">ayendesigns.com</a></div><div>@accidentalcoder</div></div>
</div>