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
Jimmy LloydJimmy Lloyd 

Enter a URL that is valid and well-formed

Can anyone help me with this. Transitioning from Classic to Lightning.

console.log('https://dealer.autoweb.com/dealers/login/{!Account.Dealer_Group_ID_num__c}/{!URLENCODE(GETSESSIONID())}');
('https://dealer.autoweb.com/dealers/login/{!Account.Dealer_Group_ID_num__c}/{!URLENCODE(GETSESSIONID())}');
SwethaSwetha (Salesforce Developers) 
HI Jimmy,
Can you share more details on what you are trying to accomplish? Is this a Javascript button that you are trying to use in the Lightning experience? Thanks
Jimmy LloydJimmy Lloyd
Hi Swetha, 
The java script is calling to a web page outside of Saleforce. This call will go to a specific account based on a unique idenifier !Account.Dealer_Group_ID_num__c
Jimmy LloydJimmy Lloyd
And yes it is a Javascript button
 
Jimmy LloydJimmy Lloyd
error I am getting is : 
Error: Enter a URL that is valid and well-formed
This is the full javascript button.
is console.log('https://dealer.autoweb.com/dealers/login/{!Account.Dealer_Group_ID_num__c}/{!URLENCODE(GETSESSIONID())}');
window.open('https://dealer.autoweb.com/dealers/login/{!Account.Dealer_Group_ID_num__c}/{!URLENCODE(GETSESSIONID())}');