• Resolved backpackingseries

    (@backpackingseries)


    Hello,

    Thank you for this helpful plugin to extend CF7. I have recently started to use it and learning the how tos.

    I have a longish form with multiple questions (with textareas* for answers) mapped to an Existing Post Type. Under each question in the form, I have provided a [save "Save"] button. And at the end of the form, there’s a [submit "Submit"] button.

    However, while testing, I find that the save button actually makes submissions. I can see multiple drafts under Posts. Is this expected behavior or am I missing something here?

    PS: I am new to using forms. So if this query is more relevant to CF7, I will seek help in its forum. Please advice. TIA.

    Kind regards,

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    However, while testing, I find that the save button actually makes submissions.

    both the save and submit button will create a draft submission, however, the post is flagged as being ‘draft’ with the save button and ‘submitted’ with the submit button. A post submission that is flagged as ‘draft’ will be reloaded into the form when the author of that post logs-in again.

    I can see multiple drafts under Posts. Is this expected behavior or am I missing something here?

    are these multiple drafts for the same form? I haven’t tried adding multiple save buttons on a form, so I am not sure what would happen and maybe leads to multiple copies being saved.

    Thread Starter backpackingseries

    (@backpackingseries)

    are these multiple drafts for the same form?

    Yes, exactly. There are multiple drafts for the same post.

    So, I’ve about ten questions in an interview questionnaire form, with the last one seeking suggestion on post title (mapped to appropriate post title field). When I hit save in the interim questions, I see draft posts without a title. But after the final submit, the draft has a title. Hence I know the problem is because of save button.

    I need those save buttons because each answer is about 50-100 words long and I dont know how to help someone answering it to auto-save the responses.

    Your suggestions and advice is welcome. TIA

    _/\_

    Thread Starter backpackingseries

    (@backpackingseries)

    haven’t tried adding multiple save buttons on a form, so I am not sure what would happen and maybe leads to multiple copies being saved.

    Could this be a possible feature request or is there a recommended fix in the current version or both?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Could this be a possible feature request or is there a recommended fix in the current version or both?

    no this is too specific a requirement. I build these plugins using projects that can afford it, by finding general solutions to specific problems required by the project.

    The save button is a feature I introduced as a result of large form that was too complex to fill in 1 time and was meant to facilitate the user to work on their submissions over several days, each time saving a draft.

    I need those save buttons because each answer is about 50-100 words long and I dont know how to help someone answering it to auto-save the responses.

    why do you need the auto-save feature? why not simply allow your users to save a draft with a single save button and once completed they can submit it?

    Thread Starter backpackingseries

    (@backpackingseries)

    why not simply allow your users to save a draft with a single save button and once completed they can submit it?

    Hence I inserted the save buttons – to allow users to save drafts. Instead, it makes multiple ‘submits’ under Dashboard -> Posts. Perhaps, I need to play with code a little bit to figure it out.

    Thank you for your support once again, @aurovrata

    Kind regards,

    Plugin Author Aurovrata Venet

    (@aurovrata)

    allow your users to save a draft with a single save button is the original design. I still don’t understand why you need multiple buttons.

    Thread Starter backpackingseries

    (@backpackingseries)

    Thank you for your support @aurovrata

    Let’s say a single button is used multiple times to save the same form at various stages of a submission – do you mean it won’t result in multiple drafts under Dashboard -> Posts?

    Will give it try.

    Kind regards,

    Plugin Author Aurovrata Venet

    (@aurovrata)

    If you press it several times, it will create several post. The problem is that the first time you load the form for a given user, there are no corresponding posts. When you save a draft post is created and a post ID assigned to the form in the DB. When the user logs in again at a later date, the form is reloaded with the draft post (and its ID) such that when the save button is again clicked, the new data is updated to the existing post.

    On the other hand if you press the save button several times when the form is loaded for the first time, the form does not have an assigned post ID, and hence the plugin believes each saves to be different submissions, therefore creating different posts.

    I guess this is a bug and I should look to fix it, however, there is a way to circumvent this issue with the current plugin. Each time the form is saved you should redirect (see FAQ #1) to another page, or (reload) the form page, therefore forcing the form to refresh its status with the newly created draft posts.

    NOTE: FAQ #1 is to redirect on submit by validating the save button is false, in your case you want to redirect/reload when the save button is true.

    I hope this clear.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    You are based in India I see. We are based in Chennai.

    Thread Starter backpackingseries

    (@backpackingseries)

    Vanakkam, Anna:) Honesly, I sensed something familiar with ‘Aurovrata’. Happy to note that! Greetings from Kangra Valley, Himachal. It’s getting cooler here.

    Thank you for the fab temp fix. That takes care of one big concern to deploy the form-to-post feature.

    PS: If you allow, I have few more topics (from early testing) to seek clarity on.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Greetings from Kangra Valley, Himachal

    lovely, next time I am up in Bir for some paragliding, I shall try to come and say hello ??

    PS: If you allow, I have few more topics (from early testing) to seek clarity on.

    I will be happy to give general ideas as to how to solve your problems, however I discourage giving specific solutions on this forum, else its gets too difficult to answer everyone’s questions. You can also seek help on the wp stakexchange forum.

    Alternatively, you can also reach out on vrata at syllogic dot in for some paid support, shall provide Indian tariff only.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    PS: have you tried my other plugin: Smart Grid for CF7, it allows you to make rich form layout (multi-column/row) which are also responsive. There is also a Table field which you might find quite handy to have custom repeat inputs from your users.

    PPS: For any other questions please ensure you start a new thread, it makes it easier for other to find similar answers.

    Thread Starter backpackingseries

    (@backpackingseries)

    lovely, next time I am up in Bir for some paragliding, I shall try to come and say hello ??

    Cheers to a super idea, Anna! ??

    I will be happy to give general ideas as to how to solve your problems, however I discourage giving specific solutions on this forum, else its gets too difficult to answer everyone’s questions. You can also seek help on the wp stakexchange forum.

    Yes, I understand and will be mindful. Thanks to various forums like this one or StackExchange, I get to learn many things of howto-WordPress for my site from some of the most talented folks. Grateful for your support _/\_. PS: In other words, I owe you a beer:))

    I’m new with forms and, at the moment, playing with a few solutions. I’ll post topics if something seems odd with Post My CF7 and perhaps add to the neverending wishlist of new features!:))

    Kind regards,

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Difference between Save and Submit?’ is closed to new replies.