Support » Plugin: Contact Form DB » Id record number

  • Hello, very helpful plugin! But I can’t find it anymore in the plugins repository (I’m passing from a site to another). Are you dismissing it?
    From your on-line documentation it seems very powerful, but I don’t understand the most of it, I’m not a php programmer. I don’t know if you can help me: I need to have a ID progressive number for each submission. This should not correspond to any field in the contact form. It should generate itself as a soon as a submission occurs. I just need to have in the list of the submissions. Is it possible to add that? Thank you very much!

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

    (@msimpson)

    The submit_time field is a unique id for each submission.

    To generate your own id, you would have to write some PHP code.

    If you just want to display a number when you output fields, then look at “Add a RowNumber” at https://cfdbplugin.com/?page_id=1167

    Hello Micheal, thank you for your reply! “Add a row number” maybe is what i’m looking for but i will only be able to see outputted in a data table. Is it correct? How is it possible to see it in the admin table too? so that from there I have the “source” and can export a complete csv file too. I guess this must be done through php, maybe adding a function in functions.php, and not using a shortcode. I would like to keep the date as well, it is helpful to me to trace submissions. Can you help somehow? thank you son much!

    • This reply was modified 1 year, 6 months ago by  marcie73.
    Plugin Author Michael Simpson

    (@msimpson)

    The “Add a row number” can be used with any shortcode. It just adds another field to the shortcode results and assigns each record a number. But that is transient. It numbers the results as they are displayed. If you have different data displayed the next time, then a different record may be first (labeled #1).

    This does not work in the admin display. You can’t change that.

    I don’t know what you are trying to accomplish.

    Thank you Michael, I need to use the form for joining a group (association, sport club, etc) and the progressive number is needed to number the card given to members. i did not understand what you mean by saying having different data displayed the next time. Do you mean if i change something in the form? thank you!

    Plugin Author Michael Simpson

    (@msimpson)

    OK. Ignore the “Add a row number” example b/c that is not what you want.

    If you were going to try to create your own +1 label you would have to code that in, plus store the last number in the DB (like in a sequence). You have to really know what your are doing.

    I don’t think the plugin is going to do what you want.

    Thank you anyway. I found this one and it worked.
    http://sevenspark.com/tutorials/how-to-create-a-counter-for-contact-form-7

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Id record number’ is closed to new replies.