Support » Plugin: osTicket Connector » Help Topic don’t work

  • Resolved jsabrautzky1

    (@jsabrautzky1)


    Hello,

    i like this Plugin. Thats what i needed. A simple way to create a ticket from WordPress. But i have a Problem.

    We have different Help Topics in osticket with assigned Departments.

    In osTicket Connector Form i use a topic Dropdown with values “Dropdowntext|topicID”:
    [select* osticket-topic “Topic A |1” “Topic B|2” “Topic C|3”]

    The ID is the Topic ID from osTicket.

    If i select “Topic B” the form submit the topicID 2. But Tickets will be createt in osTicket without a Topic. So i have no way to select the right Department. All Tickets will be created in default Department.

    When i look to the json Fields of osTicket, there is a Field called “topicId”. But it doesn’t seem to be supported by osTicket connector?

    What funktion have “osticket-topic” in the connector?

    Greets
    Jürgen

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author SCAND

    (@scandltd)

    Hello Jürgen.

    Could you tell us what plugin to create the forms you use?

    Thanks.

    Best regards,
    SCAND Team

    Hello,

    i use the Plugin “Contact Form 7” Version 4.6.1

    Plugin Author SCAND

    (@scandltd)

    Hello Jürgen.

    The “Contact Form 7” is not supported separated IDs and values for drop-downs.
    When you specify [select* osticket-topic “Topic A |1” “Topic B|2” “Topic C|3”] then option values are the same as text and not IDs (see example).

    Here is a solution, just add next filter into your code (it can be function.php in your theme or any other file):

    function scand_osticket_wpcf7_form_tag($scanned_tag) {
    if ($scanned_tag[‘name’] == ‘osticket-topic’) {
    $pipes = $scanned_tag[‘pipes’];
    $scanned_tag[‘values’] = $pipes->collect_afters();
    }
    return $scanned_tag;
    }
    add_filter(‘wpcf7_form_tag’, ‘scand_osticket_wpcf7_form_tag’);

    In this case select options will looks like “<option value=”1″>Topic A</option>” and so on.

    Let us know if it helped you. And we’ll add this into next version of our plugin.

    Best regards,
    SCAND team.

    • This reply was modified 3 years, 9 months ago by SCAND.
    Plugin Author SCAND

    (@scandltd)

    Hello Jürgen.

    Did it help you?

    Best regards,
    SCAND team.

    Hello,

    it don’t work. I have add the Funktion. But the output don’t change. Is there another Formular Plugin that work with it?

    Plugin Author SCAND

    (@scandltd)

    Jürgen,

    you may use any form plugin – it doesn’t matter which exactly.
    But if you like Contact Form 7, let’s try to resolve the issue.

    Could you provide a link to your site that we can check how form is look?

    Please contact us by wordpress@scand.com email.

    Best regards,
    SCAND team.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help Topic don’t work’ is closed to new replies.