to say it with short words: i wondering if it’s possible to make the form-fields required direct in the open.inc.php instead of the class.ticket.php?
------------------------------------------
to explaine the "why" detailed:
i would like to have different open ticket pages where the customer have to submit different information depending on the product, means:
customer select "open new ticket" and have to choose if he wish to get support for "product_a", "product_b", … a ticket with appropriate fields appears, possible with this mod: (http://www.openscriptsolution.com/2009/09/29/different-open-ticket-pages-in-osticket-system-v1-6-rc5/comment-page-1/#comment-7040)
this mod separate the "open ticket" page in different visible and unvisible areas (only on customer side).
but i have no idea how to handle required-fields? because, if they are not visible, they are still required (but not accessible …). another bad thing is, when you try to submit the (not completed) form, you will be redirect to the default “open.php”.
so, i think about to have different open-files such as open_ticket1.php, open_ticket2.php, … (what require also different open.inc.php files). the problem is just that the required fields are defined in the class.ticket.php and necessary even if the are not used/included in the new open_ticket1.php, open_ticket2.php , …
to solve this i wondering if it’s possible to make the fields required in the respective file (open_ticket1.inc.php).
unfortunately i have not enough php-knowledge, so any input is appreciated.