Hi everybody, I'm creating a new form to record the samples received in a laboratory. In this form, I need to generate an id (SampleID) with this style : 201612058.
2016 for the current year.
12 for the current month.
058 is the number of sample received in the laboratory during the current year.
I installed the Sourcerer extension to add custom PHP code.
Now, I want to generate automatically the SampleID in a disabled Text Box (for user information).
How can I do this ?
I have already tried to paste my custom PHP code in the field Value of my Text Box but it doesn't work...
Second question,
I want to add this ID (and others fields) in my database when I click on Submit button. DB Save is working on all fields except my custom code..
Thanks for your help !
2016 for the current year.
12 for the current month.
058 is the number of sample received in the laboratory during the current year.
I installed the Sourcerer extension to add custom PHP code.
Now, I want to generate automatically the SampleID in a disabled Text Box (for user information).
How can I do this ?
I have already tried to paste my custom PHP code in the field Value of my Text Box but it doesn't work...
Second question,
I want to add this ID (and others fields) in my database when I click on Submit button. DB Save is working on all fields except my custom code..
Thanks for your help !