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

ShannonK’s picture

Is 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!).

?

quicksketch’s picture

There 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.

quicksketch’s picture

Status: Active » Closed (fixed)