- AndrewDaviesAsked on June 05, 2011 at 12:41 PM
I have discovered that I can suppress a "jotform" form in a sidebar by pasting the same source code for that form onto the main page as well. This makes the form appear in the main page, but disappear from the sidebar, which is very useful to know.
It struck me that if a second piece of coding can suppress the coding in the widget in this way, it should be possible to add another piece of coding to the main page to suppress the "Jotform" form in that as well.
To put things into context. I have three Jotform codes in one widget, giving me three different contact forms for different types of visitor: seller, buyer and investor. I also have wesite pages devoted to each of these classes of person, and separate long questionnaire pages devoted to sellers, buyers and investors. So when I saw that it was possible to suppress coding from the widgets, it occurred to me that on my Sellers' Questionnaire page, it would be ideal if I could suppress the widget for Buyers and Investors. Likewise, on the Investors' Questionnaire page, it would be ideal if I could suppress the Sellers' contact form.
I am new here and don't know if anyone has raised this question before or not.
But I have been encouraged to ask it because you keep urging me to get in touch if I have any queries, and because so far I have been blown away by what Jotform is capable of producing.
- JotForm SupportNeilVicenteAnswered on June 05, 2011 at 01:03 PM
I have a feeling that you're using Wordpress, and that what you want to do is to show a different form in your website's sidebar for specific pages.
If my hunch is correct, please try this wordpress plugin that might be able to help you. It allows you to choose whether to display or hide a widget on specific pages or posts.
Unfortunately, that is just how far I can go with regards to this query of yours. That plugin is way too unrelated to Jotform, it would seem unnatural and awkward if I start spoonfeeding you with information about a software which has no relation at all to our product.
Feel free to read the manual or instructions that come with that plugin. Good luck on your project.
- AndrewDaviesAnswered on June 05, 2011 at 02:06 PM
I had no intention of compromising your loyalty to Jotform or your professionalism by trying to get you to expound upon the products of another company. My query was based purely upon the observation related above, and the deduction from it that it might be possible to insert a piece of Jotform coding to achieve the same end as required.
As it happens, you are absolutely right in your assumption that I am using Wordpress. Your summary of what I am trying to achieve is also exactly right. And I thank you for advising me about the Plugin, of which I was previously unaware.
Since I have discovered the wonders of Jotform, it has not occurred to me to imagine that anyone else might be able to provide an appropriate solution. This is because compared to Jotform, everything else seems slow, laboured, inefficient or downright impossible.
Thank you for your help.
- JotForm SupportNeilVicenteAnswered on June 05, 2011 at 02:15 PM
Honestly speaking, if my hunch was incorrect then I'm not sure if I would know how else to accomplish what you needed.
It's good to know that I was able to help in my own little way. On another note, I got pretty confused by your post in the beginning. The unlikely 'supression' of the widgets (form) is caused by your the insertion of Script or Embed <> codes for multiple forms. Have you been using iframe codes, which you should (iframe is the most fool-proof embed method), then the idea for the 'widget supression' wouldn't have crossed your mind.
Anyway, to get your form's iframe embed codes
1. Go to Setup & Embed tab
2. Click Embed Form
3. Click iFrame
4. Copy the codes provided in the succeeding screen
- AndrewDaviesAnswered on June 05, 2011 at 03:36 PM
Thanks. I will do that for all my forms. I assume I paste the new coding immediately after the original coding for each form. Once I have managed to get to grips with all this, I want to embed a hidden field so that I can find out which page they are using the form on. I saw someone else raise that point, and kept a note of how to do it. The reason I mention it is because presumably the iframe code goes after all the others. So I would end up with: original coding, followed by embedded hidden field coding, followed by iframe coding. Correct?
- JotForm FounderaytekinAnswered on June 07, 2011 at 02:11 AM
I think you are interested in showing different versions of the form depending on who is the visitor. One possible solution might be to use Form Conditions feature:
For example, you could have the form in multiple pages, and if the user chooses "investor" or "seller" options, you can send them to different questionnaire pages.
- AndrewDaviesAnswered on June 07, 2011 at 03:07 PM
How kind of you to give me a further answer. Thank you for advising me about Form Conditions, which I knew nothing about and opens up such new possibilities. What an amazing product Jotform is. I'm new here and still learning some of its astonishing capabilities. Even without this new knowledge you've just imparted, Jotform stands out from any rival or competitor, and I haven't finished exploring what it can do yet! Incidentally, you were right about getting the form twice if you insert both pieces of coding - I had three forms on one widget, and ended up with six forms on my web page when I inserted both pieces of coding. Interestingly, Neil was also right, when he forecast that if I used i-frame, the unexpected suppression of the widget would not occur. Once I inserted i-frame, all suppression of widgets ceased immediately. Interesting thing to have happened though... Thanks to all contributors for assistance.