Results 1 to 6 of 6

Thread: Can I hide fields in form?

  1. #1
    Join Date
    Apr 2012
    Posts
    17

    Default Can I hide fields in form?

    Hi,
    I'm using Textite formmail - and find it very good. I'm not very experienced with HTML.

    I would like some fields in my form to appear only when certain selections have been made in radio boxes. for example if a user selects "I'd like to enter your event", a section of the form would open up to allow them to enter necessary details.

    Can this be done?

    John

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Can I hide fields in form?

    Hi,

    This isn't something that FormMail can do, as it doesn't interact with your HTML.

    You'll need to look for Javascript code on the web, and I'd recommend using jQuery for this.

    For example, to hide the field called "Phone", you can use this code:
    HTML Code:
    $('input[name="Phone"]').hide();
    and to show it again:
    HTML Code:
    $('input[name="Phone"]').show();
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Apr 2012
    Posts
    17

    Default Re: Can I hide fields in form?

    Thanks for quick response as usual.

    Can you recommend a book or website where I can learn about jscript?

    If I insert jscript stuff in a form that I've built with your wizard, will it disappear again if I get the form updated by your wizard?

    Thanks,
    John

  4. #4
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Can I hide fields in form?

    Hi,

    jQuery Novice to Ninja is pretty good.

    But, you really need to be proficient in JavaScript to understand anything about jQuery.

    If you use Design a Form, and then upload to re-design it, yes you will lose additions.

    Converted forms don't have that issue.

    Also, with jQuery, you don't have to have any code inside the form itself, so that avoids losing the code when you re-design the form.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Apr 2012
    Posts
    17

    Default Re: Can I hide fields in form?

    Thanks again, Russell.
    ...and can you suggest a good primer for JavaScript?

    When you say "converted forms don't have that issue" - what exactly do you means by a converted form?

    Oh, and one more question. Can I alter the formatting of headers and text blocks on a formmail form? I'd like them to be centred rather than left justified. I expect this is simple, and just shows my lack of knowledge of HTML and CSS.

    John

  6. #6
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Can I hide fields in form?

    Hi,

    Try "DOM Scripting" by Jeremy Keith.

    So, the Wizard and Hosted Forms allow you to design a form using our online designer. You can then come back and redesign as required.

    But, if you've create a form using something else (e.g. DreamWeaver), you can convert it to use FormMail.

    Yes, you can alter the styling with some simple CSS (but you need to know CSS).
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A way to hide empty fields in the good_template
    By faeldray in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 29-Jan-2014, 05:56 PM
  2. Hide Empty fields in HTML Template???
    By shuefy80 in forum Community Support
    Replies: 4
    Last Post: 20-May-2012, 05:10 PM
  3. Adding INI to PHP (hide email)
    By smitthy in forum HOWTO Guides and Tips
    Replies: 2
    Last Post: 21-Oct-2010, 09:09 PM
  4. Hide DEF_Alert email?
    By originalrikarika in forum Community Support
    Replies: 0
    Last Post: 08-Jul-2008, 01:12 AM
  5. Hide Thank You Page URL
    By swicki in forum FormMail Subscription Support
    Replies: 4
    Last Post: 24-Jan-2006, 08:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •