Hi,
I'm trying to build a form that has client and server side validation, the problem I'm having is that in order to do this I need to mark fields as required so that I can use HTML5 validation, this isn't working I'm assuming because the required attribute is already in use by Couch? When I add an extra required attribute nothing happens.
Example as below:
This generates:
But I need:
Any ideas?
Thanks,
Chris
I'm trying to build a form that has client and server side validation, the problem I'm having is that in order to do this I need to mark fields as required so that I can use HTML5 validation, this isn't working I'm assuming because the required attribute is already in use by Couch? When I add an extra required attribute nothing happens.
Example as below:
- Code: Select all
<cms:input type="text" name="csname" class="input" placeholder="Please enter a name" required='1' required />
This generates:
- Code: Select all
<input type="text" name="csname" id="csname" value="" class="input" placeholder="Please enter a name">
But I need:
- Code: Select all
<input type="text" name="csname" id="csname" value="" class="input" placeholder="Please enter a name" required>
Any ideas?
Thanks,
Chris