Hi, i try to include external php file in event switcher, but don't go, is it possible?
Forums
event switcher load external php file
Hi pirosoft ,
Which version of ChronoForms are you using? There should be no problem in including a PHP file in CFv5 - and I think that it is also possible in CFv6.
Bob
Which version of ChronoForms are you using? There should be no problem in including a PHP file in CFv5 - and I think that it is also possible in CFv6.
Bob
Hello, Im new in CF6, in CF5 the event switcher have a code field, I dont see that code field in CF6 to inset custom PHP code for the event switcher
Have a PHP block BEFORE the event switcher that RETURNs the value you want. Then in the switcher, use
If you need the value to come from a script in an external PHP file, then just include it in the PHP block
{var:phpblockname}
If you need the value to come from a script in an external PHP file, then just include it in the PHP block
Do I need put the <? ?> tags? because I have an error 500 when the form execute the PHP
Nit in the PHP block, but yes in your external file
This topic is locked and no more replies can be posted.