I have a form with several several types of input elements, hidden, text, radio, etc. The user can edit them. In which case when the form is submitted, the values are being passed. However, another action they can take is to do a search. The search performs an ajax call, returns some data, and I use this data in .js code and populate the inputs on the form. However, in this case, when I submit the form, the values are not being passed.
So, my question, is there a way to make the form dirty if the user has not changed the value? If so, what is the name of the attribute to set? Or, do I have to check each element as some of the examples I have found do? It appears that if the value is set systematically then the dirty flag is not set for the field.
Thanks,
Troy
So, my question, is there a way to make the form dirty if the user has not changed the value? If so, what is the name of the attribute to set? Or, do I have to check each element as some of the examples I have found do? It appears that if the value is set systematically then the dirty flag is not set for the field.
Thanks,
Troy