Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

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

first-time form

Started by bougui 7 years ago · 0 replies · 455 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 Jerry Hunt, 4 days ago
2 85 13 hours ago
General · by pamtbaau, 18 hours ago
1 60 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 350 5 days ago
General · by Duc , 6 days ago
3 44 5 days ago