Hi Rotexy,
If you need that ID stored in machform database, you need to edit some files indeed, and I think you can get that format. To do so try to follow these steps :
1. Add a "text" field into your form (I assume this field ID is 1)
2. Add these CSS code to your CSS form to hide that field
#li_1 {
display:none !important;
}
3. Edit your "includes/post-functions.php" file and go to around line 155, you'll see these code :
if('text' == $element_type){ //Single Line Text
then put these code, exactly bellow that line
if ($form_id == 32 && $element_id == 1) {
$generate_id = strtoupper (date("Ddm")) . str_pad($form_id,4, "0", STR_PAD_LEFT);
$element_data = $generate_id;
}
4. Go to line 1024 in the same file and you'll see this
$record_insert_id = mysql_insert_id();
put these code bellow that line
//update the formated id to get unique ID
if ($form_id == 32) {
$query = "UPDATE <code>ap_form_{$form_id}</code> set <code>element_1</code> = '".$generate_id.$record_insert_id ."' WHERE id='{$record_insert_id}';";
do_query($query);
}
Don't forget to change form_id and element_id with yours.