Feedback Button: Passing Through Parameters for Feedback form.

  • funeraldecisions
    Asked on May 17, 2018 at 8:27 AM

    Hey Guys...so I'm trying to pass through parameters for a floating feedback form template.  I found the tutorial that you had put together, but that was from 2012 and it doesn't work with the current script that you have.  So here's what your system gave me to embed just now:

     
     
    I tried adding the iframeParameters: {'test1': 'value1'}
    that you had in the tutorial...but as I mentioned this is from 2012.  It doesn't work.  If I use the original script from that tutorial I can get it to pass through the parameters, however the script messes with other scripts we have on site so we're not able to implement the old version anyway.
     
    Is there an updated way to do this with your current script?  Thanks.
  • gizem
    Replied on May 17, 2018 at 11:59 AM

    Could you please try this code?

        <script src="https://form.jotform.com/static/feedback2.js" type="text/javascript">

          new JotformFeedback({

            formId: "paste your form ID here",

            iframeParameters: {'typeA': 'value1'},

            buttonText: "Get Feedback",

            base: "https://form.jotform.com/",

            background: "#007FEF",

            fontColor: "#FFFFFF",

            buttonSide: "Bottom",

            buttonAlign: "Right",

            type: 0,

            width: 700,

            height: 500,

            isCardForm: false

          });

        </script>

    You can find the field's unique name as in the below screenshot: 

    1526572395Screen Shot 2018 05 17 at 6 Screenshot 10

    I hope this helps. Let us know how it goes.

  • funeraldecisions
    Replied on May 17, 2018 at 12:43 PM
    Yes, this works.  Thanks!
    Mike
    ...