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
BB 

Redirect to a page layoutand prepopulate with values

I try to convert the javascript buttons in order to make them work in lightning.

Visualforcepage: 

<apex:page standardController="Solutions__c" recordSetVar="solutions" extensions="SolutionWrapper" >

      <script>

            function redirect(){
                alert('{!sol.Solution_Country__c}');
                window.location.href='/a0A/e?xxxxxxx={!opp.Name}&xxxxxxx={!opp.Id}&retURL=%2F{!opp.Id}&RecordType=xxxxx&Solution_Country__c={!sol.Country}={!acc.Country__c}&ent=xxxxxxx';
            }
            window.onload = window.setTimeout(redirect(),5000);
        </script>
</apex:page>

This visual force page is integrated in a 'Custom Button or Link Edit' because in my case i can not use action.

Given the fact that url hack are not working anymore in lightning , are there any other way in this case to prepopulate the fields of the url destination. 

Thanky you in advance 
Raj VakatiRaj Vakati
you need to use the lightning-quick action button 


https://trailhead.salesforce.com/en/content/learn/modules/lex_migration_customization/lex_migration_customization_actions

https://trailhead.salesforce.com/en/content/learn/modules/lex_javascript_button_migration/javascript_button_alternatives
http://sfdcmonkey.com/2017/04/16/add-lightning-component-lightning-action/
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/lightning_component_actions.htm