matrixsolutions Posted June 18, 2012 Report Share Posted June 18, 2012 The 'if' statement works. The document.write() code works. If I put them together it does not work. Could the problem be the javascript use within the script???? Thanks. if ('[@field:ABC]' == 'Yes' ) { document.write(""); } Quote Link to comment Share on other sites More sharing options...
MayMusic Posted June 20, 2012 Report Share Posted June 20, 2012 You can try to have your button in a dive and display it in that condition. For instance you can have this code in your HTML block: if (document.getElementById("ID OF THE FEILD").value == 'Yes' ) { document.getElementById("mybutton").style.display = "block"; } If you can provide me the link of the page I will be able to provide you a more precise answer. :!: :!: :!: :!: :!: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.