Hey guys,
I´ve modified my open ticket-site to show new fields depending on which topic they select.
Example: If I choose "Warehouse issue" 1 new field pops up below it, called "What kind of article number is it?"
Though I got an issue with having required fields in the hidden fields. If I choose another topic I wont get the extra field, but osticket still gives me an error that it's required.
I came up with the solution in tickets.inc.php
if ($var == "9") {
$fields = array('type'=>'string','required'=>1, 'error'=>'Säljkanal required');
} else {
$fields = array('type'=>'string','required'=>0, 'error'=>'Säljkanal required');
}