Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Professionals Create custom fields for feedback

Create custom fields for feedback

With version 4.0.0 it is possible to customize the feedback form if you edit some HTML. The template for the feedback form automatically regulates the form and saves all added fields automatically into the database.

It is important that all fields have a certain name attribute, otherwise Helpful will not save these fields. These fields are not checked by Helpful, only sanitized.

The name attribute must always look like fields[myID]. myID should always be written together. Helpful also uses the myID as a label for the backend.

Also note that there is always the textarea with the name attribute message. This field uses Helpful for the message.

Helpful also uses a button with the type attribute submit. This should always be available so that Helpful knows that the form has been submitted.

An example of a working form might look like this:

<div class="group">
  <label for="message">Message <req>*</req></label>
  <div class="control">
    <textarea name="message" id="message" required></textarea>
  </div>
</div>

<div class="group">
  <label for="email">Name</label>
  <div class="control">
    <input type="text" name="fields[name]" id="name">
  </div>
</div>

<div class="group">
  <label for="email">Email</label>
  <div class="control">
    <input type="email" name="fields[email]" id="email">
  </div>
</div>

<div class="group">
  <label for="checkbox">
    <input type="checkbox" name="fields[checkbox]" id="checkbox" value="checked"> A custom checkbox
  </label>
</div>

<button type="submit">Send feedback</button>

The data is then saved:

// label: value

message: user message
name: user name
email: user email
checkbox: checked

Was this post helpful?