Jump to content

Hide Update Button Not Working


Recommended Posts

I have an 'Update Single Record' Form that is working perfectly since I followed past forums, but I cannot figure out how to hide the original 'update' button. I am using a new HTML Block button to submit the form, and then go to a new page. I cannot use the canned 'go to new page' because I am deploying in Iframes.

I was able to hide the button by going to 'styles' and changing the display to none, but the problem is that also hides my HTML Block button as well, and I need that to show. Do you have any idea on how to hide the original update button, but keep my HTML Block button? My code samples are below. 

Header:

<script>
function updateRecord(){
   window.top.location('http://yahoo.com');
}
</script>

HTML Block Button:

<input class="cbUpdateButton" id="Mod0EditRecord1" name="Mod0EditRecord" onclick="updateRecord()" onmouseout="cbButtonHover(this,'cbUpdateButton');" onmouseover="cbButtonHover(this,'cbUpdateButton_hover');" type="submit" value="Next Page" />

Footer:

<script>
document.getElementById("Mod0EditRecord").style.display = "none";
</script>

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...