Autonumbering

A

AYReg

Is there a way for a form to automatically be numbered prior or after
submission? For example, I'd like for the user to submit the form and
InfoPath automatically generate a number for that particular form (with the
number clearly seen on the form prior or after submission).

Thanks.
 
M

Mias

Under Controls insert a Text Box into your form.

Double click on the Text Box and in the value box you enter the rule that
will make it unique. In my case i have used the following formula (you can
copy and paste):

concat("#", substring(translate(translate(translate(now(), ":", ""), "-",
""), "T", ""), 3, 12))

The result is that it gives you a unique # based on the Year, month, day and
time (down to the second) that the form was opened.

I also de-selected the button underneath that states " ...Update this
Value..."

I hope this helps.

Mia
 
A

AYReg

Mias - I appreciate your response.

Is there a way to simply just number the form in a sequence such as (001,
002, 003 etc.)? Thanks.

Alex
 
S

S.Y.M. Wong-A-Ton

If you're submitting to a SharePoint form library, you can use the ID of the
last form together with rules and formulas to generate a new number for your
form when it is submitted.
 
E

Eddy-T

Ayreg,

I would like to do the same thing but be able to restart the numbering
after the end of the year. So if you hear something I would like to know
about it as well.
 
A

AYReg

Will do. And if you find out anything regarding Autonumbering, please let me
know as well. Thanks.

Alex
 
W

wajackson

How do you get the last FORM ID?

Thanks

S.Y.M. Wong-A-Ton said:
If you're submitting to a SharePoint form library, you can use the ID of the
last form together with rules and formulas to generate a new number for your
form when it is submitted.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top