Form Submission

Permalink 1 user found helpful
Hi All

I have a form created using the form block. The original was created and then the client wanted additions and modifications. I did that and it looks good and client likes it, now comes my dilema, when the form is submitted, the email doesnt reflect the order in which the data was inserted into the form.

I have checked the block_form_submission.php file and it is fine...(it only reflects what is seen after submission)

Where would I make the FORM changes to ensure the sequence of information in the email sent is in order.

bcarone
 
rhl replied on at Permalink Reply
rhl
Hi, it is a simple trouble that you can solve very easily. In the form, questions will appear ok, but heir sequence in email will be set according to the editing sequence. The last editied will appear on the top. So what you can do is to click on each question again once the editing jobs are over. Click and save in the correct sequence. The same sequence will appear in the mail. Let me know whether it works fine. Regards, RH
bcarone replied on at Permalink Reply
bcarone
Thanks Researchhelpline.

That did that trick. Sequence is right on the money now.

Thanks
Bill
lexteo replied on at Permalink Reply
It does not work for me, i think i did not understand it corectly.
Where exactly do I need to click ? Can you please make a screenshot.
bcarone replied on at Permalink Reply
bcarone
Lexteo

Researchhelpline had it on the money. Once you have created your form and it works then have to go back and reposition portions of it, get the form to look how you want.

Once that is completed (this can be time consuming) go to the edit function of your block. Starting from the top, select edit, then save changes without making any changes. This will force the form elements to be in sequence and your email will then be formatted the way the form is. You may have to make some tweaks but that is essentially what you have to do.

Bill
lexteo replied on at Permalink Reply
bcarone thanks but in fact i understood the same thing the problem is when I save chandes it only saves them for the first 2 fileds in the form then nothing happens :( i press save changes and it does not say changes saved.
Any ideea ?
bcarone replied on at Permalink Reply
bcarone
Lexteo

I have never seen a problem where you can't go in and add or edit a form using the form block.

Just a question (and I am sure you have done this)Have you deleted it and tried again?

My problem wasn't the form display on the site but in the way the form was displayed in the sent email. Not sure how all that is done on the backend.

Sorry I can't be more helpful.

Bill
griebel replied on at Permalink Best Answer Reply
griebel
I had the same problem, just update line 201 in /concrete/form/controller.php, add ORDER BY position, msqID in the SQL query, like this

//get all questions for this question set
$rows=$db->GetArray("SELECT * FROM {$this->btQuestionsTablename} WHERE questionSetId=? AND bID=? ORDER BY position, msqID", array( $qsID, intval($this->bID)));


Then the email will have the same sequence.
orisinal replied on at Permalink Reply
orisinal