Appnitro Software Forums » MachForm

how to hide fields

(5 posts)

  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 1 year ago #
  2. Hi,

    It suppose works with that code, could you try with

    #li_1
    {
    display: none !important;
    }

    anyway what is your form url ?

    Posted 1 year 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 1 year ago #
  4. 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 1 year ago #
  5. waitz
    Member

    Great, thanks :-)

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.