Hi,
First I want to thank you for your fast replies and assistance.
I tried to do the following in ''before form'':
if( JRequest::getVar('bf_title', null) !== null ){
while (@ob_get_level() > 0) {
@ob_end_clean();
}
$db = JFactory::getDBO();
$db->setQuery("Select s.id From #__facileforms_records As r, #__facileforms_subrecords As s Where s.record = r.id And r.form = ".$this->form." And s.`name` = 'title' And s.`value` = " . $db->Quote(JRequest::getVar('bf_title', null)));
if(trim($db->loadResult())){
echo 0;
} else {
echo 1;
}
exit;
And then in the validation form:
function ff_title_validation(element, message)
{
if(element.value.trim() == '') return 'Please enter a title';
var myreturn = '';
JQuery.ajaxSetup({async:false});
JQuery.post('index.php', { option: 'com_breezingforms', ff_form: ff_processor.form, Itemid: 0, format: 'html', title: element.value }, function(data){ if( data != '1' ){ message == '' ? myreturn = 'Title exists already!' : myreturn = message; } } );
return myreturn;
}
I'm not a coding expert, but please tell me which parts of these codes I must replace. For now, with these configurations, the form just freezes when I press submit.
Thank you again,
Elisabeth