• Resolved adminadb

    (@adminadb)


    hi, please i use forminator plugin in my website and i want to create an autocrement field number (field will be autoincremented in each submission and i receive this number in email with other fields).

    it’s possible ?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @adminadb,

    We have a couple of PHP snippets which you can try out, depending on your requirements.

    The simple one will just us an autoincremental value (1,2,3, etc.) in one of the hidden fields (it’s using {hidden-1} field by default). In order for the hidden field to be recognized by this PHP script, you’ll need to add AUTOINCREMENT_INT as the custom value in the field settings, on the LABELS tab:

    https://prnt.sc/uBX1Rth0HZWQ

    You can copy the snippet from this post, then save it as a PHP file (for example, “forminator-autoincremental-value-1.php“), and upload that file to /wp-content/mu-plugins/ directory on the server. This will make it run as a must use plugin.

    There’s also a more advanced script, which you can install the same way, as a must use plugin. It lets you define a prefix, and a suffix, there are some examples in my reply here.

    Hope this helps. Let us know if you have any questions!

    Best Regards,
    Dmytro

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @adminadb ,
    
    We haven’t heard from you for several days now, so it looks like you no longer need our assistance.
    
    Feel free to re-open this topic if needed.
    
    Kind regards
    Kasia

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

The topic ‘Autoincrement field’ is closed to new replies.