You need to sign in to do that
Don't have an account?
Ricardo Aguilar 4
Edit button redirecting to visualforce pages not working
Hello,
I have assigned two Visualforce Pages to two different record types using the following code and controller.
Codes work properly when creating a new record, using the "New Survey" button. (See image below)
I also have overriden the Edit button to launch the Visualforce Page to edit the record, but when clicking the edit button it doesn't show anything. It is not working.
"Edit" button actually used to work properly in the past, but now it turn out to be that I have might forgotten something in the code for this button.
Any help would be appreciated!
VF Code
Apex code
Edit button
I have assigned two Visualforce Pages to two different record types using the following code and controller.
Codes work properly when creating a new record, using the "New Survey" button. (See image below)
I also have overriden the Edit button to launch the Visualforce Page to edit the record, but when clicking the edit button it doesn't show anything. It is not working.
"Edit" button actually used to work properly in the past, but now it turn out to be that I have might forgotten something in the code for this button.
Any help would be appreciated!
VF Code
Apex code
Edit button
I understand your requirement.
Public ID recordTypeId; // Can you please change the data Type String To ID because
RecordTypeID = apexpages.currentpage().getParameters().get('RecordType'); // When you are geting record type from URL it will return ID Please let me know if you need any help/if it helps you.
Thanks & regards
Madhukar.
It works for a new record though, like previous code.