Custom php function breaks the template

How to fix a custom PHP function breaking the Joomla template in ChronoForms.

Overview

The issue occurs because the PHP action in ChronoForms does not support defining custom functions.
Remove the function definition and use standard PHP script code directly within the action instead.

Answered
ChronoForms v6
sh shahabpk 11 Mar, 2020
I created a test chronoform and only put a custom php script in Load event to test it.
The script contains a php finction.

Custom php function breaks the template image 1
But when this I do a test run of this form, it breaks my template from loading properly and I get something like this in the page.

Custom php function breaks the template image 2

This happens only when create a php function. normal php script works perfectly. Any idea?
I use Joomla Fontaine theme.
Max_admin Max_admin 11 Apr, 2020
Answer
it does not support functions, do not use a function in the PHP action!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.