It’s possible to change the form order visually or just in source code to alter the order in which the values are sent to the form handler, but the way that the form handler is constructed (by the Action) it’s not possible to leave the form alone and change the order of the fields in the e-mail.
You have constructed the form using the most bullet-proof layout technique possible – a table. This will (as you have seen) resist any changes behind the scenes, because there is no layer order to manipulate inside a table. The data is simply there in rows and columns, and reads out in the order of the fields.
As a debugging step, I took a copy of your form, pasted it into a text editor, re-assigned the form target to point to my Reflector script, and read out the raw data being sent to the server by your form. Here’s what that looks like:
Array
(
[Name] => First name
[Surname] => Last name
[Procedure] => Ear, nose & throat
[Age_category] => 46-60 Years
[Gender] => Choose not to disclose
[Nursing_staff_courtesy] => Good
[Pre_procedure_information] => Good
[Admissions_process] => Good
[Patient_privacy] => Good
[Nursing_staff_responsiveness] => Good
[Admin_staff_responsiveness] => Good
[Waiting_time_in_waiting_area] => Good
[Waiting_time_in_ward] => Good
[Level_of_cleanliness_wards] => Good
[Level_of_cleanliness_waiting_area] => Good
[Noise_level_and_comfort] => Good
[Pain_controlled] => Good
[Medication_explained] => Good
[Recommendation] => Maybe
[comments] => Anything
[submit-patient-survey_x] => 173
[submit-patient-survey_y] => 35
[sendForm22846] =>
)
Is that similar to, or wildly different from, the e-mail that you get? Can you paste here an example form submission, so we can compare?
I also noted two things about the form at the source level that you could correct:
- There’s a stray “gender” picker at the bottom of the page, named Gender1. Looks like an errant copy/paste operation.
- The Name and Surname fields are still coded as textarea, rather than input. Textarea is for letting people type as many words as they want to, with paragraphs and everything.
Walter
On Sep 10, 2018, at 4:37 AM, Matt Covarr email@hidden wrote:
Hi Walter,
Thanks for your feedback, certainly helpful and much appreciated! I have worked through the various points you’ve made and all is working now as it should.
The only things which I cannot seem to get to the bottom of is the order of the information which comes though within the email received from the form.
In Freeway, on the page toggle, I see the forms content/elements as you have suggested, but these are a mixture of actions and text fields. None of this appears in the order of which it’s set up in on the form. It reflects the order of which they appear in the email. I have used the Form Element Styler action on the various drop down items. These are just Freeway menu items, dropped into the form alongside their text.
I cannot reorder these via the page toggle at all, they don’t allow me to do that.
Would you possibly have any ideas?
freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options