Hide fields basing on URL params

  • Profile Image
    Filip
    Asked on January 13, 2012 at 05:17 AM

    On the forms we develop we need to show/hide some fields basing on values passed in query string. I developed a sample form (linked) to demonstrate the problem: I'd like to show the name textbox if we pass test=true in URL, otherwise I want to hide it.

    From what I read in your forum it’s not possible. I only found a workaround described in thread: http://www.jotform.com/answers/37986-Is-there-a-way-I-can-use-hidden-fields-to-show-certain-questions?entrymessage=10732640770).

    Is there any other solution to that problem than the one described in linked post? We have our own installation of JotForm deployed - maybe it's an easy code change that we could introduce?  
    If there is no other solution, can you answer this:

    1. I have over 25 fields on my form that should be displayed on a single page. One of the fields should be show/hidden basing on a query param. From what I understand using solution with pages I would have to recreate all 25 fields on other page just to implement that hidding of a single field. Am I right?

    2. How do I apply CSS changes to a form that I embed on my page using your script link if it generates an iframe?

    3. The button text would say 'Next' instead of 'Submit'. Can this be changed?


  • Profile Image
    aytekin
    Answered on January 13, 2012 at 10:48 AM

    Please do not send the same question to multiple support places, and do not ask multiple unrelated questions on the same forum thread. Thanks. 

  • Profile Image
    Filip
    Answered on January 16, 2012 at 03:20 AM

    I originally posted this in a topic describing the same issue, but your support told me to start a new thread. So I did.

    All the questions asked are related to the workaround suggested in the topic I mentioned (see link in my first post)

    I already found answer for my 2nd question, the remaining 1 & 3 are still to be answered.

  • Profile Image
    Filip
    Answered on January 17, 2012 at 05:31 AM

    Hi FXR

    Unfortunetally your post doesn't answer my questions. This is because all my above questions are very specific to the workaround described in the following thread (already linked in my first post):

    http://www.jotform.com/answers/37986-Is-there-a-way-I-can-use-hidden-fields-to-show-certain-questions?entrymessage=10732640770

    So, to make it easier for you guys let me start from the begining:

    Currently it seems that hiding/showing fields basing on values passed in url params doesn't work. The linked thread describes a workaround for that.

    My main question is: Is there any other option to the one described in linked thread?