Embedded Request Form - Javascript

  1. Get Embed URL
  2. 📚
    Request Center URL

  3. Inject HTML DIV where you want the form to be displayed.
  4. <div id="pima-form-target"></div>

    Note: DIV ID is customizable by passing the 'target' option. Refer to section #4 for more details.

  5. Inject Javascript:
  6. Simple JS form script:

    <script src="[YOUR REQUEST CENTER URL].js"></script>

    Form script with options:

    <script src="[YOUR REQUEST CENTER URL].js?wrapper_class=form-group&input_class=form-control form-control-lg&label=0&placeholder_first_name=First Name *&placeholder_last_name=Last Name *&placeholder_email=Email *&placeholder_company_name=Company Name *&placeholder_message=Message *&submit_btn_class=btn btn-primary btn-lg&submit_text=Submit Request&form_class=bg-col-11 col-lg-8 mx-auto p-8 bg-gray rounded&error_class=is-invalid&callback=pimaLoadedCallback" ></script>

  7. List of options:
    • callback: FunctionName Name of function to be triggered once form is fully loaded.
      • Default: null
    • form_class: string Name(s) of class to be attributed to form HTML element.
      • Default: ''
    • error_class: string Name(s) of class to be added to HTML inputs/checkboxes with validation error(s).
      • Default: ''
    • input_class: string Name(s) of class to be added to HTML inputs/checkboxes.
      • Default: ''
    • wrapper_class: string Name(s) of class to be added to HTML div wrapping input elements.
      • Default: ''
    • label: boolean If set to 1, input label html tags will be included in DOM, if set to 0, input label html tags will be removed from DOM.
      • Default: 1
    • placeholder: boolean If set to 1, input field placeholders will be displayed, if set to 0, input field, placeholders won't be displayed. Default: 0.
    • placeholder_first_name: string First Name input field placeholder.
      • Default: null
    • placeholder_last_name: string Last Name input field placeholder.
      • Default: null
    • placeholder_email: string Email input field placeholder.
      • Default: null
    • placeholder_company_name: string Company Name input field placeholder.
      • Default: null
    • placeholder_message: string Message input field placeholder.
      • Default: null
    • submit_btn_class: string Name(s) of class to be added to form submit input.
      • Default: ''
    • submit_text: string Submit input value.
      • Default: 'Submit'
    • target: string ID of div target the form will be injected in.
      • Default: 'pima-form-target'