You need to sign in to do that
Don't have an account?
Rocio Vivanco
Cancel button should render second outputpanel in a group of two outputpanels
Hi all,
I have this part of code, which is an outputpanel and renders the second outputpanel when a condition is met.
Now I want to implement the functionality for the button CANCEL, so by clicking on that button the second outputpanel disappears.
I couldn't find any examples in order to show how this can be done.
Did anybody have experience with this?
I have this part of code, which is an outputpanel and renders the second outputpanel when a condition is met.
Now I want to implement the functionality for the button CANCEL, so by clicking on that button the second outputpanel disappears.
I couldn't find any examples in order to show how this can be done.
Did anybody have experience with this?
<script type="text/javascript">
function KillSubmitButton(){
var obj= document.getElementById('cmdSubmit')
obj.style.visibility = 'hidden';
}
</script>
<apex:outputpanel id="Buttons">
<input type="button" value="Submit" id="cmdSubmit" onclick="KillSubmitButton();mysendorder();" class="btn" />
</apex:outputpanel>