Passing record id for onClick while also presenting the form

I am display data in two different tables. All data is static with the exception of a status field that is also the area that determines which table data is displayed in. Inside of form tags I use a cfoutput tag to move through the records of each table. The State record is a cfinput with type of option button to set the State. I can send the form by using the onClick event of the radio button, but I'm not sure how to pass the record id of the record that will need the status field to update on my action page. Is it possible to pass the id of this record along the use of javascript and then read it on the page of action to pass to my sql? I plan to send the return form to the same page so that the toggle the radio button would move the record to the other table. I wanted to avoid using a "submit" button and change of values of the moving status field recording at the "closed" state table or vice versa.

Greetings,

Have you tried to add the code below at the end of your course of action

? record_id = #URLEncodedFormat (record_id) #.

Example:

onClick = "this.form.action ='path_to_page.cfm? record_id = #URLEncodedFormat (record_id) #"; this. Form.Submit ().

If I understand what you try to do, I set up a sample and tried the "Example" code above and it

spent a record to the page id designated without any resulting problems.

Leonard

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • Satellite Pro A200 - drivers need Win7 & feature keys FN

    Hello I have little problem with my Satellite Pro A200-29N. I installed him win7 and now I can not find drivers (only completed ValueAddedPackage).Seconds are the keys FN they does not work:(befor j'ai WinVista)

  • Events and Photo Albums

    I recently upgraded from the Mavericks to El Capitan and therefore iPhoto has been migrated to Photos.  Is there a reason why I should do the Albums new for new pictures added since migration or can I add new events and save them under iPhoto events?

  • Compac Presario CQ57: operating system not found

    Operating system not found

  • Cannot delete the folder/files off computer/Explorer

    Hello having a problem with a program. (ITunes). Tried to fix without success, so I removed the program (actually had to remove a lot of different things as suggested by ITunes) after removing everything (in order) from my control panel. (Add/Remove

  • PPoE settings WRT400N - Unable to connect to ISP

    Hello I have internet service via PPPoe and a working wireless network adapter in my HP PC running Windows 7 Ultimate. I have been successfully using the router with the machine for a year. Now I have intermittent connection problems. So I reset the