You need to sign in to do that
Don't have an account?
tango
I seem to have the syntax off a bit here. I just want a function to redirect (as a short cut) to a target template folder.
Is there an easier way to just redirect the page from a VF page?
function market_templates() {
window.parent.location.href="/00X?setupid=EmailTemplates&fcf=00l4000000101yK";
}
</script>
<apex:commandButton action="" value="Review Templates" title="Link to Email Templates" onclick="market_templates();" / >
Command button to redirect
I seem to have the syntax off a bit here. I just want a function to redirect (as a short cut) to a target template folder.
Is there an easier way to just redirect the page from a VF page?
Code:
<script language="JavaScript">function market_templates() {
window.parent.location.href="/00X?setupid=EmailTemplates&fcf=00l4000000101yK";
}
</script>
<apex:commandButton action="" value="Review Templates" title="Link to Email Templates" onclick="market_templates();" / >
-David
Or since you're not really interested in performing some type of action other than a redirect, I would personally just use outputLink and then give it some appropriate styling to get it to look like a button, if that's what you want.