How to add additional fields in the create new ticket form (4 posts)

  1. maetmar
    Posted 5 years ago #

    How / Where would I add additional fields in the create new ticket form and still be able to get future updates for this great theme (quality control)?

  2. Spencer Finnell
    Posted 5 years ago #

    Are you using the latest version?

    If you look for the quality_ticket_form in ticket.php, you'll see that it acts much like the WordPress comment_form() where it takes an array (or in this case, 3) fields.

    So if you want to add additional fields, I'd first suggest you make a Child Theme. Then add your own version of the create-ticket.php and where you see

    <?php do_action( 'quality_ticket_form', array( 'location' => 'page' ) ); ?>

    You could change it to something like this: http://syndtext.com/ntimn0/

    (Note that this will only show the title field. You need to copy/paste any of old fields you want.

    Again, check out the documentation for comment_form() if my explanation of how it works isn't enough. They function very similarly.

  3. maetmar
    Posted 5 years ago #

    I tried your code and it works as you described (only the titel will be shown). The problem I have is that I am not a good enough PHP coder to add new fields.
    It would be great to have in one of the next releases a functionality that allows to add some custom fields to the form / tickets.

    thanks so far.

  4. fellene
    Posted 5 years ago #

    This has been a very handy plugin and seems to work well.

    I figured out how to add new fields to the registration form in the register-forms.php file, but the content is not showing up in the User's List. Is there any way to get the info in these new fields to show up in my User's list for admin review on the backend. Particularly want the name to come through, not just User name. Lot no. would be nice.

    Please see Login Page for Client's Site

Topic Closed

This topic has been closed to new replies.

About this Topic