Skip to content
Snippets Groups Projects
Commit a11a8fe1 authored by Prasad's avatar Prasad
Browse files

Added input validation

parent 1e8c530c
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@
</tr>
<tr>
<td colspan="2">
This information will not be shared. Vtiger will use the email address for sending a monthly newsletter and any product updates. <br>
This information will not be shared. Vtiger will use the email address for sending a monthly newsletter and any product updates.
Industry will be used to understand use cases and further improve the product.
</td>
</tr>
......
......@@ -178,6 +178,16 @@ jQuery.Class('Install_Index_Js', {}, {
registerEventForStep6: function () {
jQuery('input[name="step7"]').on('click', function () {
var username = jQuery('input[name="myname"]').val();
if (username.length < 1) {
alert('Please enter your name.');
return;
}
var email = jQuery('input[name="myemail"]').val();
if (email.length < 1) {
alert('Please enter your email.');
return;
}
var industry = jQuery('select[name="industry"]').val();
if (industry.length < 1) {
alert('Please select appropriate industry option.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment