I have a parent form with a repeatable child form.
I would like to have a field 'axle_number' with the default value of 1,
when user clicks [+] I would like the next copy of the form to contain 2
and so on.
This is what I have tried in default value, but it only ever inserts the + 1
I would like to have a field 'axle_number' with the default value of 1,
when user clicks [+] I would like the next copy of the form to contain 2
and so on.
PHP:
if ($data == '') {return 1;
} else {
return '{tbl_axle_details___axle_number}' + 1;
}
This is what I have tried in default value, but it only ever inserts the + 1