I have overriden
user-register.tpl.php and in it I would like to render same checkbox twice (so that I can submit if either of them have been checked and they are the same I just need to display them twice).
<div class='field1'> print render($form['field_add_option']); </div> <div class='field2'> print render($form['field_add_option']); </div>
But this gives same field with same id with same name which is to be expected. Is there a way to change name and id of field before rendering?
I have tried to change the name like (before the second one)
$form['field_add_option']['und']['#name'] = 'test1';
But the label
name of checkbox are still the same.