Arkosoft Posted May 11, 2015 Share Posted May 11, 2015 Hi, I added some new fields to the registration form on my WHMCS, but I need to check if a field is empty or not before the registration process. There are some controls like if the name or surname is empty. How can I do to add other controls to this default ones? I'm sorry, but I don't find other information about this. Arkosoft 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted May 12, 2015 Share Posted May 12, 2015 You could just make the field 'required' - this would prevent the registration form from being submitted if the field is empty, for example: <input type="text" name="name" required> 0 Quote Link to comment Share on other sites More sharing options...
Arkosoft Posted May 14, 2015 Author Share Posted May 14, 2015 I was not clear, I'm sorry. I added a popup menu and only if this popup is on a certain value, I must make the field 'required'. An example: I choose "Company" from the popup and the field "VAT" must be "required", but if I choose "Freelance" the same field must not be "required". Any idea for that? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.