You need to sign in to do that
Don't have an account?
wt35
Custom Button: Create new case from VF Page
Hi Community
I want to create a button in my VF page that opens a "New Case" page in Edit mode with a specific Record Type.
I have created the following button for this but nothing happens when clicking on it:
<apex:commandButton value="New Onboarding Action" onclick="parent.location.href='/500/e?def_account_id={!Account.Id}&RecordType={!recordTypeId}';"/>
Thanks for your help
sfdcfox
Parent may be null. Instead, use window.top.location.href, which will always point to the main window frame.