Display Message contains the validation code

berendj 29 Mar, 2016
Dear support forum,

After upgrading to Joomla 3.5 and the latest Chronoforms V5, I got the following problem.
My form uses a custom validation. It then sends two emails, 1 to the user and one to the administrator.
These emails are both send. So far so good. Then a thank you page is displayed in a Display Message as last event in Setup.

The problem is, that the simple thank you message is preceded with the php code of the validation in the Event Switcher! See uploaded picture.

The server is running PHP 5.6.18

I hope you can shed some light in this dark matter.

Bert
GreyHead 29 Mar, 2016
Hi berendj,

Next to impossible to tell from here - that is some custom code that is being included in your form somehow. Is it in the Display Message action? That doesn't support PHP so would display the code like this.

Bob
berendj 29 Mar, 2016
Hi Bob,

Nothing is inserted anywhere. This is the Message content of the Display Message: (See the last part of the uploaded picture).


<p>Bedankt voor uw wijziging {naam}, wij bevestigen deze zo snel mogelijk.</p>

<p>Met vriendelijke groet,</p>

<p>Riet Klabbers,<br />
Deelnemersadministratie
</p>

That's just what it is: a little html. Nothing else.

berendj
GreyHead 29 Mar, 2016
Hi berendj,

That looks OK

Please take a Form Backup using the icon in the Forms Manager and post it here and I'll take a closer look.

Bob
berendj 29 Mar, 2016
Hi Bob,

The problem is solved. It all came down to a missing opening <?php tag. This caused the php code to flow over into the "Display Message" routine.

Sorry for taking your time Bob. In the mean time I missed some coffees too.

berendj
This topic is locked and no more replies can be posted.