I'm trying to achieve the following. I would ask the visitor to complete an inquiry form by providing their name and record the current date and other questions.
Then I would generate a unique reference number by using the date(day+month) and the first two alphabets of their name. The reference number will be added to the email sent out to admin and visitor upon request.
Example, the form is completed on 09042019, and the name is Jonhny, so the unique reference number would be 0903JO, how can I achieve this?
I'm looking at Contact Form 7 Dynamic Text Extension plugin but I'm not sure if I can achieve this with the plugin.
I have also go through a suggestion by AMCD at here https://wordpress.org/support/topic/contact-form-7-generating-reference-number but from my understanding, it generates a random reference number which is not my case.
I have also go through this similar topic here Return a unique number to the customer after apply on our form (wordpress) but it doesn't do what I need.
Hoping expert here could help.
Thank in advance