Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

How to add a external heldesk form to my grav support page

first-time form

Started by bougui 7 years ago · 0 replies · 621 views
7 years ago

Hello here,

Sorry for this dumb question, but I would like to add a section in my grav support page that my visitor can add a support request right from the support page.

here is the code that I need to add in my grav page, I'm using the helium theme 5.4.26 with grav 1.5.8. My heldesk software is on a redmine server.

HTML
<span>
   <div id="helpdesk_widget"></div>
   <script type="text/javascript" src="https://my-redmine-server.com/helpdesk_widget/widget.js"></script>

<script>
  RedmineHelpdeskWidget.config({
    color: '#af1287',
    translation: {
      nameLabel: 'Please enter your name here',
      emailLabel: 'Please put your email here',
      descriptionLabel: 'What question do you have?',
      createButtonLabel: 'Ask quesiton',
      createSuccessDescription: 'Thank you for your question!',
      createErrorLabel: 'Something goes wrong :(...',
      subjectLabel: 'Subject',
      createSuccessLabel: 'Your question successfully created'
    },
    identify: {
      nameValue: 'User',
      emailValue: '[email protected]',
      subjectValue: 'This is my question',
      trackerValue: 'Bug',
      projectValue: 'Support',
      customFieldValues: {
        'test': 'Field value'
      }
    },
    attachment: false,
    title: 'How can we help you?'
  });
</script>
</span>

I have look at grav documentation and saw that I need to do something like this

{% do assets.addJs('https://my-redmine-server.com.com/helpdesk_widget/widget.js') %}

But I dont see the widget form.

I see on my helpdesk server that my browser come to get the widget.js file.

So the only pending task would be to find a way to display my form in the grav page

Thanks for any help on this.

Guillaume

last edited 05/24/19 by bougui

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 1 week ago
4 176 1 day ago
General · by lynbor, 5 days ago
2 113 2 days ago
General · by Old Man Umby, 1 week ago
1 98 1 week ago
General · by Sebastian, 1 week ago
1 121 1 week ago
General · by Andy Miller, 3 weeks ago
0 246 3 weeks ago