• CYBURT
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hello everyone!!!

 

 

Do you know if is there any way to simply redirect to a VF Page after a command button action??

 

I have this: <apex:commandButton action="{!print}" value="Print" id="impresion" />

 

I use it to create a PDF and attach it to a lead, but what I want to do next is going to this lead, and I don't know how. I've been looking for ideas here in the visualforce development forum, but all of them are complicated or I don't know how to implement it!

 

Thanks in advance!!

I am attempting to use an s-control to create a new event (easy enough), but want it to apply to a specific record type.  The following is the code I have tried:
 
<script type="text/javascript">
window.parent.location.href="{!URLFOR($Action.Activity.NewEvent,null,
[retURL=URLFOR( $Action.Contact.View, Contact.Id)]
)} &recordtype='01280000000EpvVAAS'";
</script>
 
This allows me to create a new event, but the default record type is used instead of the one specified in the code.  How do I make this work?
 
Mark