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

Deactivate the Submit button in some forms


  1. sonic
    Member

    Hi
    I use this script to print out some forms in a iframe. It works greate.

    <script type="text/javascript">
    function zPrint(oTgt)
    {
    oTgt.focus();
    oTgt.print();
    }
    </script>

    <body>
    <iframe name="myFrame" id="myFrame" width="100%;border:none" height="1100" allowTransparency="true" frameborder="0" scrolling="no"
    src="http://cuk-qs.cochlear.com:88/machform/view.php?id=1"></iframe>
    <input type="button" value="Print this Form" onclick="zPrint(myFrame);" />
    </body>

    Now we have some forms which we do not want to send by email. Only for print. Is there a way to deactivate the Submit button in some forms?

    Thanks
    Sonic

    Posted 16 years ago #
  2. redityo

    Hi ..

    Why you don't disable e-mail function only ? you don't need save form data to database? it's so the easy way you can hide the button by editing form CSS on form builder menu and search this section

    #main_body .buttons input
    {
    	font-size:120%;
            display:block; <-- add this line
    	margin-right:5px;
    }

    MachForm Support

    Posted 16 years ago #
  3. sonic
    Member

    Hi

    I'v add the line (see below my css)

    width:auto;
    }
    
    #main_body .buttons input
    {
    	font-size:120%;
    display:block;
    	margin-right:5px;
    }

    but the submit button is still visible!

    Posted 16 years ago #
  4. redityo

    Ups sorry, i am not change it :)

    #main_body .buttons input
    {
    	font-size:120%;
            display:none;
    	margin-right:5px;
    }

    MachForm Support

    Posted 16 years ago #

RSS feed for this topic

Reply