Can I put in a counter in a Infopath form?

A

AMRJ

I have published my infopath form to a Sharepoint library. I would like to
include a counter which is activated each time I open/submit a new form. Can
this be done i infopath or will I have to do it in Sharepoint? How do I do it?
 
S

Swathi (GGK Tech)

Hi,
Add a field to data source with default value 0. And set that field value to
1 when you open the form. Do this in the form Open rules (Tools -> form
options -> Rules).
 
A

AMRJ

Hi Swathi,
Thanks for you for responding to my question. But I need more help.

I set the default value to 0 in the data source
I wrote 1 in Open rules.
First time it counted 1, but next time when it should count 2 it still says
1.

AMRJ


"Swathi (GGK Tech)" skrev:
 
S

Shiva (GGK Tech)

Hello,

In your case you have to modify your rule is every time you to get the
existing count variable and add the ‘1’ to that field.
Rule:
Setting field value should be: fieldname + 1
 
A

AMRJ

Hi,
It is still not working the way I want it to. I have set the field value to
fieldname +1.
Now if I open a new form it will be called 1, but if I submit it and open it
again it will change to 2. I need the formula to be saved in the template it
self and not in the submitted form , so that next time I open a new empty
form it will be called 2, the next one 3 etc.
(I want to use the number as the filename, so it needs to be unic, as I dont
have any unik values in the form) I hope I am making sence.

"Shiva (GGK Tech)" skrev:
 

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