Skip to main content
Participating Frequently
November 5, 2007
Question

Creating CF Forms

  • November 5, 2007
  • 2 replies
  • 301 views
I would love some help from anyone willing.

Okay... I am trying to get a job and I have assignments with CF which I am not very familiar with. I am familiar with HTML. I can not do live tests because we do not have CF extensions on our servers. The man I am interviewing with said he didn't care who I called, what resources I used, but it is due by Wed/Noon.

I have learned how to use Dreamweaver this weekend (normally I use FP) and connect it to CF. I have also figured out how to make a CF form with the questions he asked me to create.

Still having trouble with these areas.
1) I can not figure out how to make the text area limited to 300 characters.
2) I do not know how to connect this CF form within a html page structure.
3) I am suppose to store this information into a Survey page.
4) I am not clear on how to do this part. "Once the data is stored create a separate script to generate two report types. The first will show the user's name, the time it took them to complete the survey and all the answers they gave. The second will show what percentage of the users that answered each question. (for example: 20% answered A for question number 1) (obviously the second
report will not include question number 3)"

Then I have a second part I think I can do but I am unfamiliar with this software.

Denali

I still have to
    This topic has been closed for replies.

    2 replies

    Inspiring
    November 5, 2007
    Hi,

    1) For limiting the user to enter 300 characeters you need write some JavaScript routine and then you have to call it on the "OnKeyPress" and "OnKeyDown" events of your "<textarea>" control.

    2) You can simply post these data to your action page through the "action=action_page.cfm" attribute and withthe method set as method="post", and you need not worry about with the CF/Html Struction as the CF code is treated in the Coldfusion Server (which then will be returned as a HTML and will be rendered via Browser).

    3) For storing the data, Define a datasource (through the CFAdmin Panel) with a valid DB of your choice and between the the <CFQUERY> </CFQUERY> tags, place your SQL Statement.

    4). And again for generating the reports you may need to get the user option through a drop down (or) radio button control and pass it to a posting page in where you can do the querying using the <CFQUERY> tag.

    HTH
    Inspiring
    November 5, 2007
    There are beginner level tutorials on easycfm.com. I hope you know sql. Good luck.