• I followed this great article (https://cfdbplugin.com/?page_id=904) so when a user submits a form, they can’t submit again which works like a charm. But I was also hoping to find a way of hiding the ‘submit’ button just for that user after they’ve clicked it that one time. Is this possible?

    🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    That is a questions for Contact Form 7.

    Thread Starter stdrntn

    (@stdrntn)

    Apologies if I’m mistaken, but this request would require CFDB in the same way the link above does. The submit button would need to be linked into the CFDB to check if that user has submitted the form in the first place. I’m aware it’s probably a fair bit of work, but just incase there is a snippet which I can add into the filter I’ve used above! 🙂

    Plugin Author Michael Simpson

    (@msimpson)

    CFDB does not display the form and it cannot control displaying anything on the form. The example makes use of a CF7 hook that allows CFDB to signal that the submission is not valid. But CF7 manages the display of the form. So the question is for CF7: is there a way to signal it to stop displaying a button? I’m pretty sure the answer is no, but you would have to ask CF7 people.

    Thread Starter stdrntn

    (@stdrntn)

    Okay, thank you – I will see if they can help! Though the only way it can know if the user has already submitted is via cfdb, but hopefully there is enough existing info in the hook I’ve implemented to try and achieve what I require.

    Thanks so much for your time, have a nice day Michael!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove submit button once submitted’ is closed to new replies.