View Issue Details

IDProjectCategoryView StatusLast Update
0003442Composrticketspublic2017-12-03 22:13
ReporterJoeAssigned To 
SeverityFeature-request 
Status non-assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0003442: Add custom sub-fields to ticket types
DescriptionWhen a user selects a ticket type, have additional fields appear, if configured, to require additional information from the user.

An example would be:
User is requesting an email address...
User opens ticket, chooses "request email" as ticket type,
Once ticket type has been selected, an additional field appears asking the user what they wish their email address to be.
TagsNo tags attached.
Time estimation (hours)16
Sponsorship open

Activities

Chris Graham

2017-12-03 22:13

administrator   ~0005288

Last edited: 2017-12-03 22:13

View 2 revisions

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();

Issue History

Date Modified Username Field Change
2017-12-03 20:55 Joe New Issue
2017-12-03 22:11 Chris Graham Time estimation (hours) => 16
2017-12-03 22:13 Chris Graham Note Added: 0005288
2017-12-03 22:13 Chris Graham Note Edited: 0005288 View Revisions