I'd like some advice on form validation.
My problem is like this. I have fields for Item 1 Description, Account Name, unit price etc. Obviously for the first Item these fields are mandatory … no problems. However if the user also has additional items then Account Name and Unit price etc. would only need to be mandatory if, say, some Item 2 Description was entered.
I figure, ditch the submit button and use an onClick event for an input button to run some JavaScript which is also fine however I can't get the form to submit using document.formname.submit() …
Perhaps I'm doing it completely wrong, perhaps I don't know what I'm doing … any advice is appreciated.