You need to sign in to do that
Don't have an account?

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
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
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