Skip to content

Using a javascript Based Feedback Form #95

@coding-to-music

Description

@coding-to-music

Using a javascript Based Feedback Form

https://jareddillard.com/blog/common-ways-to-customize-sphinx-themes.html#using-a-javascript-based-feedback-form

For an embedded feedback form versus just a feedback button, you can add the code for that to the theme’s HTML template instead. Here is an example using Hubspot, but you could go with any javascript based form service:

{% if pagename != "search" %}

Documentation Feedback

<script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/v2.js"></script> <script> hbspt.forms.create({ portalId: "XXXXXXX", formId: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", css: "" }); </script>
{% endif %} Once the form is embedded, add custom styles for the form in the custom.css file.

Documentation Feedback FormAn example of an embedded Hubspot feedback form.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions