Hi,
by default the forms are automatically applied in the frontend only, in the wp-admin / Classifieds / Add New panel, the user needs to first fill the default fields and in the right sidebar select a form scheme, the form will then reload with all the fields in the selected scheme.
In the next update, we will make a change here so the users will be able to select the form scheme upfront or the default one will load.
Greetings.
That’s Right. The Scheme selection appears. But it doesn’t apply initially once selected so it needs to be filled on defaults, then saved and then filled with the missing fields.
Hope that gets implemented on the update.
EDIT: Despite i fill all the fields, either required or not, every time i save the warning of “Post updated, but some required data is not filled properly.” appears and leaves me thinking where is the failing. And i don’t see anything wrong neither in backend (no red fields marked) or frontend (no warnings)
Thanks for the answer.
-
This reply was modified 5 years, 7 months ago by
johndoe01.
To force-print the errors open the file wpadverts/includes/admin-post-type.php go to line about 177 and before if ( !$valid ) { add
echo "<pre>";print_r($form);echo "</pre>";exit;
This should print the whole form with the errors and stop the redirection, in the form scheme you should be able to find the errors occurred on saving.
This is completely odd.
With the code the error is located Here
[advert_category] => Array
(
[value] => Array
(
)
[error] => Array
(
[0] => Field cannot be empty.
)
)
But what leaves me thinking are a couple of things:
First the ad passes anyway, the ad in question is this:
https://www.racertrader.com/tests/ads/mitsubishi-eclipse-2005/
Second despite i set the categories in the beginning or later the error remains.
Even when the selected form has less categories than all at the very beginning.
How can it throw that error of Category not selected and pass any way since the (admin’s) side initial form has all categories, i set it there, and then when i change to the selected form where there is a group of categories and having it selected, throws that warning?
Hi,
note the error message you are seeing is Post updated, but some required data is not filled properly., as an admin, you can save an Ad without filling all required data the message just informs you that the fields required in the frontend form were not filled.