• Good day everyone,

    I would like to give every submission to my form a unique ID, or count if you will.

    I’m trying to use the [cfdb-count form=”myform”] shortcode, but it does not produce any value – the shortcode itself is just displayed on both the page and in the email.

    What am I not understanding here? I’m obviously exchaning “myform” with the title of the particular form.

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

    (@msimpson)

    [cfdb-count] counts the entries. So if you had 100 entries, you would get “100”.

    Look at the “Add Row Number” example on https://cfdbplugin.com/?page_id=1167

    Thread Starter pragmatikstu

    (@pragmatikstu)

    Thank you so much for your reply Michael. So great to have the plugin developer be this attentive!

    I tried out the “AddRowNumber”-shortcode, but from what I can tell, this only enumerates the rows within that table. My form-submissions are separated into several tables with different “show” and “filter” and with conditional fields etc., and every row across different tables (submissions) needs a unique ID, since my client needs it for their external system.

    I have tried using this CF7-counter, but it produces duplicates – even though I’ve added code that refreshes the page on submission.

    I know you cannot answer for someone else’s PHP – but do you know of any successful implementations of a unique ID functionality? Like, every submission would be numbered starting from 001, 002, 003, 004 (…)

    • This reply was modified 7 years, 9 months ago by pragmatikstu.
    Thread Starter pragmatikstu

    (@pragmatikstu)

    PS! I noticed something odd using the [count] function.

    When I put “[cfdb-count form=”myform”]” in the email-output, I only get the shortcode in the received email – no value.

    HOWEVER! I installed the “Contact Form Submissions”-plugin, and there I get the count-value…

    Why won’t the value show in the email?

    Plugin Author Michael Simpson

    (@msimpson)

    In a shortcode, if you add “submit_time” to the “show” then you will see unique values for each submission. But they are not 1,2,3 count values.

    Plugin Author Michael Simpson

    (@msimpson)

    I wouldn’t expect CFDB shortcode to
    Work in emails. CF7 would have to make WP run it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Counting submissions’ is closed to new replies.