Hi,
I realise that this has been addressed before (in 2015) but I don’t see any queries (and resolutions) relating to it in 2018.
I wish to create a registration ID that is formatted as follows:
FAPSA2019-[unique incremental number]
How should one go about it?
Your response would be greatly appreciated.
This topic was modified 5 years, 8 months ago by koopmanw.
This topic was modified 4 years, 8 months ago by Garth.
If so, the way one would go about this in 2019 is roughly the same, but the filter from 2015 has been deprecated. So instead one would use: FHEE__Create__regCode__new_reg_code
Thanks so much for your response, Josh and apologies for only getting back now.
I was pushing to get another site launched.
I shall try the approach you mention and provide feedback.
Regards
Josh, Thanks! It worked.
May I bug you once more, please. If I wanted to have the incrementing number to be three digits instead of one so, for example:
FAPSA2019-001
FAPSA2019-002 etc
How would I do that. I tried adding zeros but it doesn’t produce the desired effect.
Your help is greatly appreciated, thank you.
001 as an int will always be stored as 1 so you can’t just add them to the option, but what you can do is pad the value before returning it using str_pad()
Thanks, so much, Tony. I shall try this and revert.
Regards
Viewing 6 reply threads
The support post ‘Custom Registration ID (3)’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.