reading checkbox and radio button values from form.

138 views
Skip to first unread message

Darkstar1

unread,
Apr 2, 2013, 11:30:15 PM4/2/13
to alfresco-techn...@googlegroups.com
I'm working with share forms in alfresco and trying to read the values of ticked checkboxes and checked radio buttons form a form. I extended both the user creation and userprofile form with these input controls and so far I have been unsuccessful at reading the textual values of said controls. Below is a snippet of code:

      <div class="row">
        <span class="label"><input id="${el}-input-spokenEnglish" type="checkbox" name="spokenLanguages" value="${msg("label.anglais"!"")?html}" />&nbsp;${msg("label.anglais")}</span>
        <span class="label"><input id="${el}-input-spokenSpanish" type="checkbox" name="spokenLanguages" value="${msg("label.espagnol"!"")?html}" />&nbsp;${msg("label.espagnol")}</span>
        <span class="label"><input id="${el}-input-spokenGerman" type="checkbox" name="spokenLanguages" value="${msg("label.allemand"!"")?html}" />&nbsp;${msg("label.allemand")}</span>
        <span class="label"><input id="${el}-input-spokenChinese" type="checkbox" name="spokenLanguages" value="${msg("label.chinois"!"")?html}" />&nbsp;${msg("label.chinois")}</span>
        <br/>
            <span class="label">${msg("label.otherLanguages")} : </span>
            <span class="input"><input id="${el}-input-spokenLanguages" type="text" size="30" maxlength="256" value="" /> </span>
       
     </div>

unfortunately I get nothing so far from whatever is returned and would gladly appreciate some insight into this.
Reply all
Reply to author
Forward
0 new messages