CF6 form will run even if NOT published and NOT public

How to control ChronoForms 6 form execution when unpublished.

Overview

The issue occurs because a CF6 form can still run when called directly via code even if its published and public settings are set to false.
This is the intended behavior; forms called directly in code will execute regardless of their publication status. To prevent execution, rename or do not call the form in your code.

Answered
ChronoForms v6
Ni NickOg 09 Aug, 2017
Hi
I have found that I can run forms even if they are neither published or public,
I call a form from CC6 using {chronoform:edConvenerForm}
Even if that form edConvenerForm is neither published or public the called form runs. If I rename the form to (for example edConvenerFormxx) then it does not run.

A dump of $this shows that the running form it shows that public and published are set to false.
 G2\A\E\Chronofc\H\Parser Object ( [View] => G2\L\View Object ( [site] => front [extension] => chronoconnectivity [controller] => manager [action] => index [view] => views.manager.event [vars] => Array ( [conn] => ManageConveners [controller] => manager [__connection] => Array ( [id] => 39 [title] => edConvenerForm 

[alias] => edConvenerForm [published] => 0 [public] => 0 

[description] => Edir convener passed as comprolfilerid and MorP Data read OK [params] => {"mode":"advanced","permissions_deactivated":"1","default_event":"load","event_not_found":"","limited_edition":"1"} [events] => Array ( [load] => Array ( [name] => load [access_denied] => [owner_id] => ) [submit] => Array ( [name] => submit [access_denied] => [owner_id] => ) ) [sections] => Array ( [one] => Array ( [name] => one [owner_id] => [auto] => 1 [template] =>
) ) [views] => Array ( [1] => Array ( [_section] => one [type] => html [name] => html1 [category] => [label] => headerEdProgram [content] => 
Max_admin Max_admin 26 Aug, 2017
Answer
Hi Nick,

Since you are calling the form in the code I think that it should be ok to display it regardless of the published status.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ni NickOg 26 Aug, 2017
1 Likes
Thanks Max

I just didn't assume that was your intent. Fine.

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