Configuration

Maître can be initialised with some settings, including required fields and labels.

ⓘ Properties set here will override the ones set in the "Look & Feel" tab of your widget's dashboard.

Maître object settings:

<script type="text/javascript">
  window.Maitre = {
    uuid: "MFXXXXX",
    host: "http://mywebsite.com",
    source: "product_hunt",
    test_mode: false,
    require_name: true,
    require_leaderboard: false,
    labels: {
        header: "First 20 people win a free ticket",
        email_label: "Email",
        name_label: "Name",
        name_placeholder: "Your Name",
        email_placeholder: "Your email address",
        status_label: "Check status",
        submit_button: "Submit",
        check_position_label: "Check position",
        submitting_label: "Submitting...",
        back_label: "Back",
        success_main_header: "Thank you!",
        people_front: "People in front of you",
        people_behind: "People behind you",
        instructions: "Share your personal link."
    },
    alerts: {
        subscriber_not_found: "Email not found",
        subscriber_accepted: "You have already been accepted.",
        subscriber_not_verified: "You must confirm your email first.",
        form_incomplete: "Something is missing. Please check the form.",
        server_problem: "We are experiencing some issues on our server."
    }
  };
</script>

Properties

  • uuid (Required)
    The ID of the widget.
  • host (optional)
    The URL of the page that will be used to create the referral link. By default Maître uses the current page.
  • source (optional)
    This property allows you to create custom sources on the fly. If present, it will override the default tracking link. (See more about tracking links)
  • test_mode (optional)
    When "test_mode" is set to true, neither views nor registrations will be saved. Default: false.
  • require_name (optional)
    Show/hide name field in the form. Default: true.
  • require_leaderboard (optional)
    Add/remove leaderboard from the json object. Default: false.
  • labels (optional)
    Object containing the labels of the form.
    • header (optional)
      Text for the header.
    • email_label (optional)
      Text for the Email label.
    • name_label (optional)
      Text for the Name label.
    • name_placeholder (optional)
      Placeholder for the name input.
    • email_placeholder (optional)
      Placeholder for the email input.
    • status_label (optional)
      Text for the Status label.
    • submit_button (optional)
      Text for the Submit button.
    • check_position_label (optional)
      Text for the Submit button when user is checking the position in the list.
    • submitting_label (optional)
      Text for the Submit button when submitting the form.
    • back_label (optional)
      Text for the Status label when user is checking the position in the list.
    • success_main_header (optional)
      Text for the header of the success page.
    • people_front (optional)
      Text for the first paragraph of the success page.
    • people_behind (optional)
      Text for the second paragraph of the success page.
    • instructions (optional)
      Text for the instructions paragraph of the success page.
  • alerts (optional)
    Object containing the alerts of the form.
    • subscriber_not_found (optional)
      Alert message for when user checks the position but no subscriber is found.
    • subscriber_accepted (optional)
      Alert message for when user checks the position but no subscriber has already been accepted.
    • subscriber_not_verified (optional)
      Alert message for when user checks the position but hasn't verified the email yet.
    • form_incomplete (optional)
      Alert message for when user tries to submit the form but hasn't filled all the required fields (email and/or name).
    • server_problem (optional)
      Alert message for when user submits the form but there are problems on our end.

ⓘ You are allowed to use html in your labels.

Docs first screen bc50f8c0898b7d11155619180e001c9e6aa6439d2870c06c1ec0f09e08cdb8e2
Docs second screen 62083a5f858aff0a57198cd53ab80529c2205967b579c28c350e90f6ab0a699e

Still need help? Contact Us Contact Us