This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

how to hide fields


  1. as66422
    Member

    Hi, I followed yuniar's suggestion (http://www.appnitro.com/forums/topic/can-i-post-hidden-value?replies=6#post-4043) to use the CSS trick to hide a field but for some reason it does not work for me.

    I created a test survey form that has only two text fields, namely element_1 and element_2. I'm just trying to hide the first one. So, I modified the view.css file in my /data/css/form_1 directory and added the following css code at the end of the file, but it still won't hide my first text box (and its label). Please help!

    #li_1{
    display: none;
    }

    Posted 16 years ago #
  2. redityo

    Hi,

    It suppose works with that code, could you try with

    #li_1
    {
    display: none !important;
    }

    anyway what is your form url ?


    MachForm Support

    Posted 16 years ago #
  3. waitz
    Member

    Hey

    I try to hide a single line text field, but it won't disappear. What decides the number after #li_?

    I added the code above in the css, and I tried any number, but nothing hides in my form.

    Something I don't understand?

    URL to the form is: http://www.tan-ju.org/registration/view.php?id=6
    The field I want to hide is the last before the captcha: thankyou

    Thanx

    Posted 16 years ago #
  4. Saghalie
    Pro Member

    The code for you would be:
    #li_23
    {
    display: none !important;
    }

    Which should make the field disappear.

    To find the li_(number) just view the source of your HTML and find the field you want to change.

    Hope this helps!

    Posted 16 years ago #
  5. waitz
    Member

    Great, thanks :-)

    Posted 16 years ago #

RSS feed for this topic

Reply