Ordering of form fields in email

Permalink
Using the standard form to create a couple of contact forms with the following (in this order)

Your Name
Email Address
Subject
Message

In the system > reports, the order is showing as above, but the email version that's sent to the owner is in a different order:

Your Name
Email Address
Message
Subject

I need the email "There has been a submission of the form {form name} through your concrete5 website." to have the same order. I have a similar problem in larger forms, but if I can get this simpler one fixed, I'm hoping I can replicate to these other ones.

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

zapbrannigan1972
 
zapbrannigan1972 replied on at Permalink Reply
zapbrannigan1972
Can anyone help with this?! Cheers.
A3020 replied on at Permalink Reply
A3020
I've looked into this by checking the code. My understanding is that it creates an array like this: "$questionAnswerPairs[$row['msqID']". Basically, it doesn't take the order / position into account when building the array of submitted data.

A work around for you may be to delete the form fields and recreate them in the correct order.
mnakalay replied on at Permalink Reply
mnakalay
I just tested and I don't have this problem. Which of your fields are marked as required?