[ColdBox 3.60] Select Value not passing to next page

Hey group,

I have a really strange issue. I have a select dropdown that is not posting.
I have renamed it and still it doesn’t show up after posting.

I am looking at the rc and it doesn’t appear.

I have checked with firebug the spelling and I see it when inspecting the HTML but when the page is submitted, the value is not passed along.

Any suggestions for something to try?

I’m scratching my head on this one.

Thanks

I’ve encountered similar issues due not to the name of a field, but it’s ID value. Duplicate ID values cause issues in IE like you’re describing. I’d give it a unique ID and see if that changes the symptoms at all.

Is it inside of the form? Send us a public URL to see the form, so put the HTML code in Gist so we can see it.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks for the replies. I have tried a truly unique name and that doesn’t work as well.

Brad: I am not able to share the URL at this time. I do have it enclosed in a form as the next input below it is showing up. Just this select is not showing up.

So, to add a little more mystery there is some jquery action I have going on for this select box. I can post a snip of the code:

I stuck an alert into a function that is run when this dropdown is selected.

alert($(’#fcbNewassign’).val());

It does show me the value of what is passed.

Select New Assignment
  <cfset BuildDropDown = "Position: (" & STRIP & ") " & STRPOSTITLE & "
Office/Regional Command: " & strPosOffice & "
Incumbent: " & strIncumbent & " - Departing " & DateFormat(strDepart, 'mm/dd/yyyy')>

So, when this assignment is selected, a script is run that clears out the values on another form. This is where I have the alert.

The build dropdown is building a nice multi level select that has HTML in it. It’s using this:
http://www.marghoobsuleman.com/jquery-image-dropdown

However, when the form is submitted this select is not found.

odd

Use a tool like Fiddler to capture the actual HTTP request. Is the form field included in the body of the request along with the other post data?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

It should be. I’ll double check and get on the fiddle. Results in a min

body: yes, within the body tags.

Fiddler output: blank it’s like it doesn’t exist at all.

Is the form a GET or a POST? I didn’t mean the body tags of the page-- I mean the body of the HTTP request that your browser sends to the server when submitting a form post. When a browser submits a form with the POST method, all the form fields and values are escaped and placed in the body of the request (after the headers) in field=value&field2=value2 format. That is where the form scope comes from in ColdFusion.

Can you publish a working (er, broken) example of this somewhere?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com