ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using checkboxes in a template and insert the selected ones into a textarea custom field

March 27, 2014 6:54am

Subscribe [1]
  • #1 / Mar 27, 2014 6:54am

    vash1981

    2 posts

    What I am trying to achieve is to use checkboxes into a template and store all the one selected in a textarea custom field. Do you think it is possible? I am getting this error: Error Number: 1054 Unknown column ‘Array’ in ‘field list’

    {exp:channel:form channel="my_channel" entry_id="{segment_3}" preserve_checkboxes="yes"}
    
    <div id="scroll"  height: 80px;border:1px solid #ccc;">
            <input type="checkbox" name="item[]" value="item1"{checked} />item1
    
            <input type="checkbox" name="item[]" value="item2"{checked} />item2 
    
            <input type="checkbox" name="item[]" value="item3"{checked} />item3 
    
            <input type="checkbox" name="item[]" value="item4"{checked} />item4 
    
            <input type="checkbox" name="item[]" value="item5"{checked} />item5
        </div>
    
    {/exp:channel:form}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases