You need to sign in to do that
Don't have an account?
Radha Rathinavel 1
How to show/hide my input type button in visualforce page
Hi,
I have to show/hide my input button type in visual force page depends on my case record using case id, when my checkbox field is true
My Code:
<apex:page showHeader="false" sidebar="false">
<apex:includeScript value="/apex/dsfs__DocuSign_JavaScript"/>
<script type="text/javascript">
function redirectFunct()
{
var caseId= '{!$CurrentPage.parameters.id}';
window.open('/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID='+currentUrl);
return false;
}
</script>
<input type="button" value="ESIGN" onclick="redirectFunct()"/>
</apex:page>
I have to show/hide my input button type in visual force page depends on my case record using case id, when my checkbox field is true
My Code:
<apex:page showHeader="false" sidebar="false">
<apex:includeScript value="/apex/dsfs__DocuSign_JavaScript"/>
<script type="text/javascript">
function redirectFunct()
{
var caseId= '{!$CurrentPage.parameters.id}';
window.open('/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID='+currentUrl);
return false;
}
</script>
<input type="button" value="ESIGN" onclick="redirectFunct()"/>
</apex:page>
<apex:outputPanel rendered="{! YOUR CONDITION }">
<input type="button" value="ESIGN" onclick="redirectFunct()"/>
</apex:outputPanel>
You should be using StandardController on <apex:page> so you will have access to case properties ( fields) and you can use them in the rendered condition.
Mark as best answer, If it resloves !!
Use below script Mark as resloved if it helps :) :)
Thanks,
Bhanu Prakash
visit ForceLearn.com (https://www.forcelearn.com)