- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Your function validateForm(), returns value only when email value is not null.
So there's two loop happening:
1) If email value is not null, script is going to next page and inserting data.
2) If email value is null, your function returns nothing, so script goes to else part and never goes to next page of storage.
That's why values are not inserted.
For your question related to two data value insert, I would suggets to place your if else check before submitting to next page, i.e:
if (valid == true) {
//Add your if else logic here
document.controller.submit('next','_self','next');
}
Thanks.
Views
Replies
0 Likes
Total Likes