function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RudrarajuRudraraju 

Issue with using both Standard page layout and Custom Page(VF) based record type through URL hacking in Lightning

We have four record types on a object. We need to use the custom VF page for two record types and for other two we have to use standard page layouts. To achieve this we have overided the standard Edit page with custom VF page. We achieved the condition to use VF page but for remaining two records we have written code in controller to redirect them to standard page layout throught URL hacking(Using nooverride=1 in URL). This is working good in the Classic View. In lightning also we are using the same VF page. Records of the Record Types using custom VF page not causing any issues in lightning but records for records types we redirecting to standard pages are causing the issues like 
1)It's considering record type changes
2)If you edit a record and save it then it is again opening the Edit popup