Embed code: how to write a validation message?

Hi,

I fixed the preventDefault() issue; I added into onFormReady the click event:

onFormReady: function($form) {

var pp=$form.find(‘input[type=submit]’);
pp.on(‘click’, function(e) {
e.preventDefault();
return false;
});

…

…