FI-DD wrote:2.This mod has another problem that once before I asked about but no response recieved. That is : when guest post an article without filling the "required xfields", it says that you have not filled all required fileds and should go back and send again. However, when you sign in as admin you will find all guest posts( including that one rejected before), added to database and waiting for approval?!
regards
You have to add the XFields to the javascript check. By default it only checks if the short-story is blank:
- Code: Select all
if (document.guest.short_story.value == ""){
document.guest.short_story.focus();
alert ("The short story can't be blank.");
return false;
}
Copy this code and replace "short_story" with the name(s) of your XField(s).
So, I have the same problem and I try to copy the javascript check with the name of the xfiled, but is the same. It show "You should fill in all required fields." and the post from users (including that one rejected before) are added to database waiting for approval.
For example I have xfield with name - source.
I try with
- Code: Select all
if (document.guest.source.value == ""){
document.guest.source.focus();
alert ("The short story can't be blank.");
return false;
Nothing hapend.
Then I try with:
- Code: Select all
if (document.guest.xfield[source].value == ""){
document.guest.xfield[source].focus();
alert ("The short story can't be blank.");
return false;
And again, nothing hapened.
Please, I need help
