• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfgrid cfform

New Here ,
Jan 30, 2008 Jan 30, 2008

Copy link to clipboard

Copied

Hello. I am getting very frustrated!! I am working with a cfgrid and cfform. It should be a very simple thing...

Two issues...

One, the first time I submit the form with changes, it doesn't pass the form field variables. The ChoicesGrid is a empty string. The second time I submit it with changes it does pass the variables, etc. Every other time it has the variables to process. I am guessing I am just overlooking a simple thing, but I just cannot figure it out.

Two, so on the every other time that I actually get form fields, I will update, let's say, Default_Answer for Choice_ID 52, but in the form fields once submitted, the Default_Answer does show the update but to another Choice_ID.

See code below... Any help or insight would be appreciated!!! Thanks, Chrissy

<cfform name="Choices">
<cfgrid name="ChoicesGrid" format="html" selectmode="edit" insert="yes" delete="yes" query="getAllChoicesGrid">
<cfgridcolumn name="Choice_ID" display="no">
<cfgridcolumn name="Choice_Name" header="Choice" display="yes">
<cfgridcolumn name="Choice_Default" header="Default" display="yes">
<cfgridcolumn name="Choice_EarlyFee" header="Early Fee" display="yes">
<cfgridcolumn name="Choice_Deadline" header="Deadline" display="yes">
<cfgridcolumn name="Choice_Fee" header="Fee" display="yes">
<cfgridcolumn name="Choice_Order" header="Order" display="yes">
</cfgrid>
<cfinput type="submit" name="Submit" value="Submit">
</cfform>
TOPICS
Advanced techniques

Views

390

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 31, 2008 Jan 31, 2008

Copy link to clipboard

Copied

Never used a cfform/cfgrid before but shouldn't there be a value attribute?
Not sure what your trying to do but it may be easier with a cfform / html from and some queries.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 01, 2008 Mar 01, 2008

Copy link to clipboard

Copied

Did you ever resolve your problem? I'm having the exact same issue.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 17, 2008 May 17, 2008

Copy link to clipboard

Copied

LATEST
I do not believe insert="yes" is a valid option. Also try:
<cfform name="Choices" format="html" method="post" >

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation