Auto counter?

Hi,
is there a way of creating a counter?

i want useers to fill some info and then give them a unique number. is it possible with matrix?



thanks

If you use Custom Form, you could use the Asset ID of the form submission as a Unique ID. Not sure if that's useful or not.


Alternatively, if you're actually creating User assets, each one would have a unique asset ID and login too.

[quote]If you use Custom Form, you could use the Asset ID of the form submission as a Unique ID. Not sure if that’s useful or not.


Alternatively, if you’re actually creating User assets, each one would have a unique asset ID and login too.

[right][post=“12399”]<{POST_SNAPBACK}>[/post][/right][/quote]



thanks for the reply avi.

i need the counter to start in a specific number, next year it will be from 1.

the numbers must be in order and if they could be 0001, 0002, 0003. it would be great, but i can live without that.





thanks again

There are no built-in counters like that – certainly no sequential ones, except for Asset ID, but that would have gaps.


I suspect you may need a little custom development for this.

thanks for your quick replies


<_< if i have a list of standard pages, named 0001, 0002, 0003,…

is there a way of getting the name of the first page and then making it under construction or deleting it automaticaly?



if i put some PHP code on a standard page, will it run? or do i need to develop a whole new asset type?



i was thinking on having a file with a number, open it add 1 to the number and save again

[quote]if i put some PHP code on a standard page, will it run? or do i need to develop a whole new asset type?
[right][post=“12404”]<{POST_SNAPBACK}>[/post][/right][/quote]



No, we don’t allow PHP code to run in the content of any of the Matrix assets. You would have to develop a new asset to use PHP code.

[quote]Hi,
is there a way of creating a counter?

i want useers to fill some info and then give them a unique number. is it possible with matrix?



thanks

[right][post=“12398”]<{POST_SNAPBACK}>[/post][/right][/quote]





Hi Avi,



Can a keyword be used to display the submission asset id on the ‘Thankyou’ page. And if so, what is the keyword?



thanks



Joel

[quote]Can a keyword be used to display the submission asset id on the ‘Thankyou’ page. And if so, what is the keyword?
[right][post=“12831”]<{POST_SNAPBACK}>[/post][/right][/quote]



I’m not actually sure if we expose the asset ID of the submission to the Thank You page. You’d have to submit a feature request for that.

The keyword %form_submission_id% should work. I have a feeling it only works in v3.10 though; it looks like it was committed to the dev version just after v3.8 was frozen.

thanks guys, tried in 3.8 but it didn't display. So I will wait for 3.10 :slight_smile:


Cheers