Hello,
I am trying to insert this php code:
<?php echo $this=>formrow=>name ?>
In to a hidden field on my form so the form name is emailed with the form.
However, when I try to save the form it doesn't save and the admin area crashes.
How can this be resolved?
I am trying to insert this php code:
<?php echo $this=>formrow=>name ?>
In to a hidden field on my form so the form name is emailed with the form.
However, when I try to save the form it doesn't save and the admin area crashes.
How can this be resolved?
I have seen various things around the forum about having to turn the WYSIWYG editor off but this isnt really acceptable. My client who will be using the system will require the WYSIWYG editor
Hi BlueFrontierIT,
There's a 'feature' in the current release of ChronoForms that tries to evaluate the Form HTML to extract input names when you save the form. This works fine with HTML and some PHP . . . other PHP cause the problem you are seeing. The workaround is to add this PHP snippet before the first line of PHP in your Form HTML:
That said, the bad news is that I don't think that the Form Object is available from the Form HTML so your code may not work.
The good news is that you don't need it as ChronoForms adds the form name to the $_POST array. Just add {chronoformname} to your email template and all should be well.
Bob
Later: corrected {chronoformname}
There's a 'feature' in the current release of ChronoForms that tries to evaluate the Form HTML to extract input names when you save the form. This works fine with HTML and some PHP . . . other PHP cause the problem you are seeing. The workaround is to add this PHP snippet before the first line of PHP in your Form HTML:
<?php
if ( !$mainframe->isSite() ) { return; }
?>
That said, the bad news is that I don't think that the Form Object is available from the Form HTML so your code may not work.
The good news is that you don't need it as ChronoForms adds the form name to the $_POST array. Just add {chronoformname} to your email template and all should be well.
Bob
Later: corrected {chronoformname}
Hi Bob,
Thanks for this.
However, I have tried this and it doesn't work.
Putting {formname} on the email template just shows up as {formname} in the email.
Thanks again,
Jamie
Thanks for this.
However, I have tried this and it doesn't work.
Putting {formname} on the email template just shows up as {formname} in the email.
Thanks again,
Jamie
This topic is locked and no more replies can be posted.