Is this possible to open the wish box using button?

  • Profile Image
    cbprm
    Asked on June 19, 2013 at 11:52 AM

    Hello,

    I have a button and I want to show whishbox after button is clicked. Is this possible?

    Looking forward to your response.

     

    Thanks

  • Profile Image
    pinoytech
    Answered on June 19, 2013 at 12:21 PM

    Hi,

    Yes, that is possible using Pop-up embed code.

    Example:

    <a target="_blank" href="javascript:void( window.open('http://form.jotformpro.com/form/31694838847977', 'blank','scrollbars=yes,toolbar=no,width=700,height=500'))">Wishbox Form</a>

    In order to use image to open your wishbox you, need to tweak your code to:

    <a target="_blank" href="javascript:void( window.open('http://form.jotformpro.com/form/31694838847977', 'blank','scrollbars=yes,toolbar=no,width=700,height=500'))"><img src="//www.somewebsite.com/mybutton.gif"></a>

    If you need further assistance, do let us know.

    Thank you!

  • Profile Image
    cbprm
    Answered on June 20, 2013 at 01:59 AM

    Hello,

    Thanks for your reply.

    I think above code is useful for the simple form not for wishbox form because when I edit my wishbox form and after clicked on embeb form button then I only have below code. No other options for embed code was found.

    <script src="//cdn.jotfor.ms/static/feedback2.js?3.1.837" type="text/javascript"></script>

    <script type="text/javascript">

      new JotformFeedback({

         formId : "FormID",

         buttonText : "Wishbox Form",

         base : "http://jotform.us/",

         background : "#F59202",

         fontColor : "#FFFFFF",

         buttonSide : "bottom",

         buttonAlign : "right",

         type : false,

         width : 240,

         height : 549,

         instant : true

      });

    </script>

    Your code working for simple form only not wishbox.

    Could you please tell me how I can open the whishbox form after button is clicked?

    Looking forward to your response.

    Thanks

  • Profile Image
    dinesh-it
    Answered on June 20, 2013 at 02:25 AM

    Hi, The Code you have provided is actually working fine. Only thing is you have to replace the FormID with your actual Form ID.

    I found Your Wishbox Form ID is: 31691213099152

    So this Will be the Code You Need To Embed On your Page:

     

    <script src="//cdn.jotfor.ms/static/feedback2.js?3.1.837" type="text/javascript"></script>

    <script type="text/javascript">

      new JotformFeedback({

         formId : "31691213099152",

         buttonText : "Wishbox Form",

         base : "http://jotform.us/",

         background : "#F59202",

         fontColor : "#FFFFFF",

         buttonSide : "bottom",

         buttonAlign : "right",

         type : false,

         width : 240,

         height : 549,

         instant : true

      });

    </script>

     

    Hope this Solves Your Problem.

    Feel Free to ask if you have any further clasification.

    Thank you.

  • Profile Image
    cbprm
    Answered on June 20, 2013 at 03:42 AM

    Hello,

    Thanks for your reply.

    Above code is working or not working this is not my concern. My concern is opening the wishbox after button is clicked.

    You provided me  this code,

    <a target="_blank" href="javascript:void( window.open('http://form.jotformpro.com/form/31694838847977', 'blank','scrollbars=yes,toolbar=no,width=700,height=500'))">Wishbox Form</a>

    Above code only shows the Form not captured image. Please have a look

    https://www.copy.com/s/V28iEt7NxdDB/455552.JPG

    After button is clicked then I want to show the wishbox form. Please see.

    https://www.copy.com/s/V28iEt7NxdDB/wishbox.JPG

     

    Looking forward to your response.


  • Profile Image
    sidharth_kch
    Answered on June 20, 2013 at 04:11 AM

    @cbprm

    I am not sure if I have understood your requirement.

    When you embed the code provided by @dinesh-it, it will create a link button in your webpage. On click of this button your form will open.

    Please let us know your exact requirement if you want to achieve something else.

    Thanks,

    Sidharth

  • Profile Image
    cbprm
    Answered on June 20, 2013 at 04:20 AM

    Yes, its creating the the link.

    But I have another button called "Help Ticket" and I want to show wishbox after "Help Ticket" button is cliked.

    Looking forward to your response.

    Thanks

  • Profile Image
    sidharth_kch
    Answered on June 20, 2013 at 04:48 AM

    @cbprm

    I am sorry. I don't think that will be possible. I will do few tests and get back to you if any workaround is possible.

    Thanks,

    Sidharth