Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8863019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:52:16+00:00 2026-06-14T15:52:16+00:00

I want to allow the user to select multiple options for one metadata,and we

  • 0

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:

     <script type="text/javascript">
           function getSelected(Language) {
                                       var selected = new Array();
                                       var index = 0; for (var intLoop=0; intLoop < 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;
}
</script>
<$if strEquals(fieldName, "xTranslateTo") and not (isInfo or isQuery)$>
<tr <$strTrimWs(inc("std_nameentry_row_attributes"))$>>
<td <$if captionFieldWidth$>width="<$captionFieldWidth$>"<$endif$> <$if isInfo$>align=right<$endif$>><$strTrimWs(inc(fieldCaptionInclude))$></td>
<td <$if isFieldInfoOnly$>colspan="100"<$endif$> <$if captionEntryWidth$>;width="<$captionEntryWidth$>"<$endif$>><$inc(fieldEntryInclude)$>

<INPUT TYPE=CHECKBOX  NAME="Language" VALUE="English">English
<INPUT TYPE=CHECKBOX  NAME="Language" VALUE="Italian">Italian
<INPUT TYPE=CHECKBOX  NAME="Language" VALUE="French">French
<INPUT TYPE=CHECKBOX  NAME="Language" VALUE="German" >German</td>
</tr>
 <a href="javascript:;" onclick=" getSelected()">
<$else$>
<$include super.std_nameentry_row$>
<$endif$>

Can any one throw some light on where am I going wrong

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:52:17+00:00Added an answer on June 14, 2026 at 3:52 pm

    I’m able to display check boxes and assign comma separated value to the metadata,now all i’m left to do is to display the checked boxes when the user calls for update metadata form.

    <$if strEquals(fieldName, "xLang") and not (isInfo or isQuery)$>
    <script>
    function boxFunc()
    {
        var textval=document.getElementsByName('xLang')[0];
            var langs=document.getElementsByName("ucmlang");
            larray="";
                for(i=0;i<langs.length;i++)
              {
                 if(langs[i].checked)
                       {
                         larray=larray+langs[i].id+",";
                       }
          }
               larray=larray.substring(0,larray.length-1);
              textval.value=larray;
    
    }
    </script>
    <tr <$strTrimWs(inc("std_nameentry_row_attributes"))$>>
    <td<$if captionFieldWidth$>width="<$captionFieldWidth$>"<$endif$> <$if isInfo$>align=right<$endif$>><$strTrimWs(inc(fieldCaptionInclude))$></td>
    <td <$if isFieldInfoOnly$>colspan="100"<$endif$> <$if captionEntryWidth$>;width="<$captionEntryWidth$>"<$endif$>><$inc(fieldEntryInclude)$></td>
    <td><!– addition –>English<!– end addition –><input type="checkbox"  name="ucmlang"  id = "English" onclick="boxFunc()">
    <td><!– addition –>French<!– end addition –><input type="checkbox"  name="ucmlang"  id = "French" onclick="boxFunc()"></td>
    <td><!– addition –>Italian<!– end addition –><input type="checkbox"  name="ucmlang"  id = "Italian" onclick="boxFunc()"></td>
    <td><!– addition –>German<!– end addition –><input type="checkbox"  name="ucmlang"  id = "German" onclick="boxFunc()"></td>
    <td><!– addition –>Japanese<!– end addition –><input type="checkbox"  name="ucmlang"  id = "Japanese" onclick="boxFunc()"></td>
    </tr>
    <$else$>
    <$include super.std_nameentry_row$>
    <$endif$>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a <SELECT multiple> field with multiple options and I want to allow
i am designing application in which i want to allow user to select multiple
I want to show a dialog that will allow the user to select a
I want to give the user the ability to select multiple elements (which happen
I know that I can easily allow a user to select multiple Features/Geometries in
I want to allow user to upload a file of txt ,doc or pdf
I want to allow user to enter only english alphabets and characters. How can
customers does not want to allow user to use back or forward button. Just
I don't want to allow user to double click on my button. On the
I am downloading PDF file in my application and want to allow user to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.