I am using CF10 on IIS
I have a data entry form where the user can enter the various medical diagnosis attributed to a medical encounter. Right now I have the list set to 25 dx.
What I would like to do is make the list dynamic, so that if you enter a dx, the form automatically adds a data entry field for the NEXT dx. Note that the field name and type is exactly the same. It will just populate the value as a list.
So, on the change event of a dx, it would add a new row to the data entry page to allow for the next dx. This would allow the operator to enter an unlimited number of dx into a single form.
I dont want the page to move on to another page to add the next dx. That would be simple, I realize. The customer would much prefer the dynamic route on a single page.
Thoughts?
Why not let the user decide whether to add or remove a new field, according to his or her needs? For a completely worked out solution, check out Charlie Griefer's jQuery script for dynamically adding form elements.