Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm creating a webform called an "Information Request" form that has a "log number" for each form. It would be really nice if this number could increment automatically, rather than entering it manually. Is this functionality possible with the Webform module?
Thanks in advance.
Comments
Comment #1
ShannonK CreditAttribution: ShannonK commentedIs this something I could do with tokens? I'm not familiar with them, but can use them or PHP on an "as needed" basis (hopefully I'll learn little by little!).
?
Comment #2
quicksketchThere is already a unique identifier on all webform submissions (the submission ID, or SID), perhaps that would work for your purposes? However even then we don't have an SID token, hmm, troubles. This might also make a good feature request as part of #260708: Number component (Numeric field).
Generally there isn't an easy way to accomplish what you're describing, though you can do it with PHP through the additional submission code field. See http://drupal.org/handbook/modules/webform/submission-code. Generally I discourage their use and these fields have been moved to a separate project in the 3.x version.
Comment #3
quicksketch