On my form there are a checkbox, a couple of text box and a file upload item enclosed in a custom DIV, finally a submit button.
I have an ajax action that, triggered by a checkbox, output the above described DIV with a different file select (upload) item, if I deselect the checkbox the ajax action return the div output as before.
All working fine.
The problem start when I check the 'required' validation on the file upload item in the preview pane of the form , in this case, if I submit the form as soon as loaded all is fine, if I check and unchecked the checkbox (form return as previous, double checked with chrome inspecting page output in both situation)the validation always fail and a tooltip is shown in the very upper left corner of the page (very far from the file upload item).
I'm running out of ideas...
Michele
I have an ajax action that, triggered by a checkbox, output the above described DIV with a different file select (upload) item, if I deselect the checkbox the ajax action return the div output as before.
All working fine.
The problem start when I check the 'required' validation on the file upload item in the preview pane of the form , in this case, if I submit the form as soon as loaded all is fine, if I check and unchecked the checkbox (form return as previous, double checked with chrome inspecting page output in both situation)the validation always fail and a tooltip is shown in the very upper left corner of the page (very far from the file upload item).
I'm running out of ideas...
Michele