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

  • SEARCH
  • Home
  • 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 822297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:46:42+00:00 2026-05-15T02:46:42+00:00

I have no idea how to handle this in ColdFusion 9, I have a

  • 0

I have no idea how to handle this in ColdFusion 9, I have a form being submitted (POST) with element checkboxes, called items[].

When I do a <cfdump var="#form#" /> no-problem, I get all the items shown with the proper names like items[] eg:

struct 
ITEMS[] 13,14  
FIELDNAMES ITEMS[] 

however doing a <cfdump var="#form.items[]#" /> results in an error. How do I access the CF9 field values? Somehow loop through it?

I cannot seem to do anything with the array to get the id’s out of it? Thoughts? I’m kind of stumped and ColdFusion isn’t the easiest language to find examples / references on the net. 😉

Is there a correct way to deal with this? I need to get the ID’s out of there so I can reference what lines were checked in the form, so I can follow up with an action.

Thanks!

  • 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-05-15T02:46:43+00:00Added an answer on May 15, 2026 at 2:46 am

    There’s no Form Array’s in ColdFusion. Having '[]' at the end doesn’t make it an array. You can access the checkbox values from form scope like this:

    FORM["ITEMS[]"]
    

    Dot notation doesn’t work ’cause of the '[]'. See: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7fb2.html

    Values from checkboxes are just comma separated values, which is a List in ColdFusion

    To loop through it, use cfloop list=:

    <cfoutput>
      <cfloop index="i" list="#FORM['ITEMS[]']#">    
        #i#
      </cfloop>
    </cfoutput>
    

    To convert a list to array, use ListToArray(). There are list functions like listGetAt(), but if you’re doing lots of random access, it’d be smarter to convert the list into an array first.

    Thoughts, I’m kindof stumped and
    coldfusion isn’t the easiest language
    to find examples / references on the
    net 😉

    • http://help.adobe.com/en_US/ColdFusion/9.0/Developing/index.html
    • http://learncf.com/tutorials
    • http://www.easycfm.com/
    • http://www.carehart.org/ugtv/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no idea how to handle this code within a style attribute. How
I have no idea why this is happening. The error I get is the
I have an idea for how to solve this problem, but I wanted to
Anyone have idea about how to bind Boolean in sqlite with objective - c.
I have idea to write errors from my application to the Windows Event Viewer
Anyone have idea how to pass value from iPhone application to the REST-Webservice using
Any body have idea how to put controls dynamically in asp.net 3.5 ? if
I missed my workspace in which I was working. Any one have idea about
I have an idea for a functional programming language design that makes heavy use
I have no idea how to pass a value from jtable1 to jtable2 .

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.