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
Started 16 years ago by sonic | 4 posts |
-
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
SonicPosted 16 years ago # -
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 # -
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 # -
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 #
Reply
You must log in to post.