After setting up the custom Spanning Restore button in your Salesforce instance, if you receive the following error when trying to use the button, there is an issue with your JavaScript code:
When looking at the Spanning Backup for Salesforce Manual, if you copied the code and pasted it directly into your browser when creating the new Custom Restore button, then it is possible that either space or a line break was entered in the code during the paste process. As a result, you will need to edit the JavaScript code to remove the space or line break. See below:
Example of pasted JavaScript code with line breaks ('Enter' or 'Return' on your keyboard), which will cause the code to fail:
Example with the line breaks removed (Note: the break in the example below is simply due to the text wrapping feature of the internet browser - the forced line break has been removed):
After you fix these spaces or line breaks in your code, save the new code and retry using the Restore button. If you have any additional questions about this process, please contact support@spanning.com.