There is no inbuilt way available for validations in Forms.xml. You can use JQuery instead to Validate your form.
Add the jQuery Scripts into header.ftl
form.xml will generate the id based on your form Name.
Add the below code to header.ftl
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script>
<script>
$(document).ready(function(){
$("#TestingServices").validate({
rules:{
firstName:{"required": true},
lastName:"required"
},
messages:{
firstName:"<a font style='color:red'> FirstName is Required</a>" ,
lastName:"<a font style='color:red'> Last Name is Required </a>"
}
});
});
</script>