AtomForm encapsulates HTML form functionality in AJAX form. HTML form redirects entire page upon response and this causes loss of form data. But AtomForm posts bound data to post url, and on successful response atom-next action set will be executed.
AtomForm only provides AJAX post, but we also need default form layout with label description etc, so we have created one more control, that gives simple form layout easily.
Unlike HTML Form, AtomForm posts only associated data with the form itself, and it merges data from mergeData properties. Input and other controls must bind properties of Data. This helps in binding non standard HTML properties of AtomControls. In above example, FirstName and LastName properties of Data will be posted. Since data will be inherited most of the times, we have provided mergeData property to merge different set of properties before posting.
In AJAX, uploading file is not supported due to previous versions of IE, there is no inbuilt file upload provided by Atoms.js. However, we have provided an upload plugin that helps you uploading files easily with Atoms.js, it blends with Atoms.js property model and it provides progress which is totally customizable.