jQuery-Impromptu
jQuery-Impromptu copied to clipboard
Form submission causes submission of all states
There are cases when you have the prompt in one state, set some inputs, and click "next". The inputs get ajaxed to the server and the prompt changes state to a new state with more inputs. The issue arises when you fill in these inputs and submit them, and the f object in the submit_function(e,v,m,f) now contains all of inputs from both states. When two inputs are named the same, one gets a list of results, with no (obviously) guaranteed order.