Post or Edit nothing working on submit
-
We have set all things but on submit its neigther posting custom post or even on edit its not getting updated. please help us asap its just refreshing page on submission can you please reolve it asap?
we dont have much time so better you respond quick.
thank you
The page I need help with: [log in to see the link]
-
I’ve figured out edit post make work but still there is create post not working even after success message.
please respond asap, thank you
Hello,
Thanks for the feedback!
I can understand that you want to quickly find a solution for your website, however using the terms “please help us asap”, “please respond asap” and “so better you respond quick” isn’t really necessary. I answer to all users, but putting pressure doesn’t really help.
When requesting support or discussing with a technician, I strongly recommend to provide as much context and information as possible in your first message.
So the technician can look at the data you provided to find a solution, without having to ask you to provide them. Please remember that all websites are unique, with thousands of different possible configurations and usage. Since I’m not part of your development team and I’m not working on your website, I cannot guess which configuration is missing.
In other terms: help us to help you 🙂
To do so, you can provide the following information:
- Screenshots of your admin screen (form configuration)
- A video showing your admin screens & configuration
- List the settings you’ve setup in your Form “Post Action”
- An export of your form in Json (from “ACF > Tools” menu)
- Detailed explanation of what you want to achieve:
- Example: “When the user submit the form, I want to create a new ‘Page’ with the title being the field X”
- etc…
If you’re really under the pressure of time, this is the best way to get a quick answer. As this will save the time where I ask you this questions after few hours, and then you answer with the necessary data after few hours again, and I finally answer.
Let me know once you gathered all these information, I’ll be happy to help you!
Regards.
Thanks for quick response, I see seems all working and even getting success message but we have custom post type where post needs to be created. its not returning any error,, let me attach here the export of the form.
{ "post-contest": { "title": "Post Contest", "acfe_form_name": "post-contest", "acfe_form_field_groups": [ "group_63a45cab237d2" ], "acfe_form_actions": [ { "acf_fc_layout": "post", "field_acfe_form_post_action_docs": null, "field_acfe_form_post_action": "insert_post", "field_acfe_form_post_custom_alias": "", "field_acfe_form_post_save_target": "current_post", "field_acfe_form_post_save_post_type": "all_wettbewerbe", "field_acfe_form_post_map_post_type_message": null, "field_acfe_form_post_save_post_status": "request-pending", "field_acfe_form_post_map_post_status_message": null, "field_acfe_form_post_save_post_title": "field_63a45cac2f565", "field_acfe_form_post_map_post_title_message": null, "field_acfe_form_post_save_post_name": "field_63a45cac2f565", "field_acfe_form_post_map_post_name_message": null, "field_acfe_form_post_save_post_content_group": { "field_acfe_form_post_save_post_content": "field_63a45ce02f566", "field_acfe_form_post_save_post_content_custom": "" }, "field_acfe_form_post_map_post_content_message": null, "field_acfe_form_post_save_post_excerpt_group": { "field_acfe_form_post_save_post_excerpt": "field_63a45ce02f566", "field_acfe_form_post_save_post_excerpt_custom": "" }, "field_acfe_form_post_map_post_excerpt_message": null, "field_acfe_form_post_save_post_author": "current_user", "field_acfe_form_post_map_post_author_message": null, "field_acfe_form_post_save_post_parent": "", "field_acfe_form_post_map_post_parent_message": null, "field_acfe_form_post_save_post_terms": [ "77" ], "field_acfe_form_post_map_post_terms_message": null, "field_acfe_form_post_save_meta": [ "field_63a45cac2f565", "field_63a45ce02f566", "field_63bc7bd817736", "field_63a45d342f56a", "field_63bdb4505c3d0", "field_63bdb4f55c3d1", "field_63bff7d8a9036", "field_63bff814a9037", "field_63adefecd1c81" ], "field_acfe_form_post_load_values": "0", "field_acfe_form_post_load_source": "current_post", "field_acfe_form_post_map_post_type": false, "field_acfe_form_post_map_post_status": false, "field_acfe_form_post_map_post_title": false, "field_acfe_form_post_map_post_name": false, "field_acfe_form_post_map_post_content": false, "field_acfe_form_post_map_post_excerpt": false, "field_acfe_form_post_map_post_author": false, "field_acfe_form_post_map_post_parent": false, "field_acfe_form_post_map_post_terms": false, "field_acfe_form_post_load_meta": [] }, { "acf_fc_layout": "redirect", "field_acfe_form_redirect_action_docs": null, "field_acfe_form_redirect_custom_alias": "", "field_acfe_form_redirect_url": "{action:post:https:\/\/www.mysite.ch\/wettbewerb-veroeffentlichen\/}" } ], "acfe_form_field_groups_rules": "0", "acfe_form_form_element": "1", "acfe_form_attributes": { "field_acfe_form_attributes_class": "acf-form", "field_acfe_form_attributes_id": "post-contest" }, "acfe_form_fields_attributes": { "field_acfe_form_fields_wrapper_class": "acf-w", "field_acfe_form_fields_class": "acf-in" }, "acfe_form_form_submit": "1", "acfe_form_submit_value": "JETZT WETTBEWERB VERÖFFENTLICHEN", "acfe_form_html_submit_button": "<input type=\"submit\" class=\"acf-button button button-primary button-large acf-submit-b\" value=\"%s\" \/>", "acfe_form_html_submit_spinner": "<span class=\"acf-spinner\"><\/span>", "acfe_form_honeypot": "1", "acfe_form_kses": "1", "acfe_form_uploader": "default", "acfe_form_form_field_el": "div", "acfe_form_label_placement": "top", "acfe_form_instruction_placement": "label", "acfe_form_custom_html_enable": "0", "acfe_form_html_before_fields": "", "acfe_form_html_after_fields": "", "acfe_form_hide_error": "0", "acfe_form_hide_revalidation": "0", "acfe_form_hide_unload": "0", "acfe_form_errors_position": "above", "acfe_form_errors_class": "", "acfe_form_updated_hide_form": "1", "acfe_form_updated_message": "Der Wettbewerb wurde erfolgreich veröffentlicht.", "acfe_form_html_updated_message": "<div id=\"message\" class=\"updated\">%s<\/div>" } }I’ve used similar configuration update post have but that is wokring and this post creation is not working.
I see its now working if i make default status is Published but we want that pending status on post default is that possible?
I see may be because we’ve chosen different pending status thats why it was not got posted… but now all ok its resolved. thank you
Hello,
Thanks for the details and the export!
Yes, this is the first thing I saw in your export, your Post Action is using a Post Status “request-pending”, which is a post status related to user privacy requests (GDPR thing). You can read more about it here.
Since this Post Status is not supposed to work with Custom Post Types, you won’t find the tab in the “all_wettbewerbe” Admin Posts List allowing you to show posts with this status. That’s why you were thinking it wasn’t working, when posts were simply hidden in the admin.
The Post Status you are looking for is called “Pending” (code should be “pending”). This will correctly show the post with a status “Pending Review” in the Admin Screen.
Hope it’s now more clear!
Have a nice day!
Regards.
The topic ‘Post or Edit nothing working on submit’ is closed to new replies.