title: check in page customization in UCM -adding check boxes for metadata
body: <p>I want to allow the user to select multiple options for one metadata,and we need to provide check boxes for the same.I have modified the respective include and added the java script ,but some how the value is not getting assigned to the metadata:
  I have modified the include and added JS as follows ,but the metadata is not getting assigned the selected values,can any one tell me where am I going wrong:</p>
  
  <pre><code>     &lt;script type="text/javascript"&gt;
             function getSelected(Language) {
                                         var selected = new Array();
                                         var index = 0; for (var intLoop=0; intLoop &lt; Language.length; intLoop++) {
                                         if (Language[intLoop].selected) {             index = selected.length;        
                                                                         selected[index] = new Object;    
                                                                         selected[index].value = Language[intLoop].value;          
                                                                          selected[index].index = intLoop;         }      }      
                                                                              return selected;
                                                                             }
  function submit(selected)
  {
  var value =selected;
  xTranslateTo = value;
  }
  &lt;/script&gt;
  &lt;$if strEquals(fieldName, "xTranslateTo") and not (isInfo or isQuery)$&gt;
  &lt;tr &lt;$strTrimWs(inc("std_nameentry_row_attributes"))$&gt;&gt;
  &lt;td &lt;$if captionFieldWidth$&gt;width="&lt;$captionFieldWidth$&gt;"&lt;$endif$&gt; &lt;$if isInfo$&gt;align=right&lt;$endif$&gt;&gt;&lt;$strTrimWs(inc(fieldCaptionInclude))$&gt;&lt;/td&gt;
  &lt;td &lt;$if isFieldInfoOnly$&gt;colspan="100"&lt;$endif$&gt; &lt;$if captionEntryWidth$&gt;;width="&lt;$captionEntryWidth$&gt;"&lt;$endif$&gt;&gt;&lt;$inc(fieldEntryInclude)$&gt;
  
  &lt;INPUT TYPE=CHECKBOX  NAME="Language" VALUE="English"&gt;English
  &lt;INPUT TYPE=CHECKBOX  NAME="Language" VALUE="Italian"&gt;Italian
  &lt;INPUT TYPE=CHECKBOX  NAME="Language" VALUE="French"&gt;French
  &lt;INPUT TYPE=CHECKBOX  NAME="Language" VALUE="German" &gt;German&lt;/td&gt;
  &lt;/tr&gt;
   &lt;a href="javascript:;" onclick=" getSelected()"&gt;
  &lt;$else$&gt;
  &lt;$include super.std_nameentry_row$&gt;
  &lt;$endif$&gt;
  </code></pre>
  
  <p>Can any one throw some light on where am I going wrong</p>