#3442 - Add custom sub-fields to ticket types This is a spacer post for a website comment topic. The content this topic relates to: #3442 - Add custom sub-fields to ticket types By Guest posted 3rd Dec 2017, 5:13 PM Do not fill this field in. I'll leave this open, however it is currently possible with a small amount of code using the Decision Tree system, which can sit in front of tickets. See our contact page code for an example: https://github.com/ocproducts/composr/blob/master/pages/minimodules_custom/contact.php ~ 95% of that file is just defining the settings for our contact tree. The core code pattern in a minimodule is just... <?php $decision_tree = array( ... ); require_code('decision_tree'); $ob = new DecisionTree($decision_tree); $tpl = $ob->run(); $tpl->evaluate_echo(); 0 guests and 0 members have recently viewed this. Sort: Relevance Newest first Oldest first Rating Popularity
See our contact page code for an example:
https://github.com/ocproducts/composr/blob/master/pages/minimodules_custom/contact.php
~ 95% of that file is just defining the settings for our contact tree.
The core code pattern in a minimodule is just...
<?php
$decision_tree = array(
...
);
require_code('decision_tree');
$ob = new DecisionTree($decision_tree);
$tpl = $ob->run();
$tpl->evaluate_echo();