<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Javascript Error &amp;quot;Uncaught SyntaxError: Invalid or unexpected token&amp;quot; on Studio delete field button</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/895/javascript-error-uncaught-syntaxerror-invalid-or-unexpected-token-on-studio-delete-field-button</link><description>Hi, I&amp;#39;m updating an On-Demand 7.8.2.0 Pro instance. I have a backup of the instance installed on my laptop, that for all intents and purposes appears to be working fine. I want to delete a custom field. When in Studio when I try to delete a field, the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Javascript Error "Uncaught SyntaxError: Invalid or unexpected token" on Studio delete field button</title><link>https://sugarclub.sugarcrm.com/thread/18106?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 12:30:40 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:03ffe54f-f581-4fac-b159-9c8b44f2d1a5</guid><dc:creator>Gary Smart</dc:creator><description>&lt;p&gt;Thanks for the pointers. Switching to the language US English resolved the issue.&lt;/p&gt;&lt;p&gt;For our instance, we were en_UK, and &amp;quot;modules/ModuleBuilder/language/en_UK.lang.php&amp;quot; is missing &amp;quot;\&amp;quot; characters in&amp;nbsp;&lt;span class=""&gt;LBL_CONFIRM_FIELD_DELETE.&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="language-none line-numbers"&gt;&lt;code&gt;//en_UK.lang.php&lt;br /&gt;&amp;#39;LBL_CONFIRM_FIELD_DELETE&amp;#39;=&amp;gt;&amp;quot;Deleting this custom field will delete both the custom field and all the data related to the custom field in the database. The field will be no longer appear in any module layouts.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &amp;quot; If the field is involved in a formula to calculate values for any fields, the formula will no longer work.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &amp;quot;\n\nThe field will no longer be available to use in Reports; this change will be in effect after logging out and logging back in to the application. Any reports containing the field will need to be updated in order to be able to be run.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &amp;quot;\n\nDo you wish to continue?&amp;quot;,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//en_us.lang.php&lt;br /&gt;&amp;#39;LBL_CONFIRM_FIELD_DELETE&amp;#39;=&amp;gt;&amp;quot;Deleting this custom field will delete both the custom field and all the data related to the custom field in the database. The field will be no longer appear in any module layouts.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &amp;quot; If the field is involved in a formula to calculate values for any fields, the formula will no longer work.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &amp;quot;\\n\\nThe field will no longer be available to use in Reports; this change will be in effect after logging out and logging back in to the application. Any reports containing the field will need to be updated in order to be able to be run.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &amp;quot;\\n\\nDo you wish to continue?&amp;quot;,&lt;span class="line-numbers-rows"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Javascript Error "Uncaught SyntaxError: Invalid or unexpected token" on Studio delete field button</title><link>https://sugarclub.sugarcrm.com/thread/18105?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 09:28:42 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:90543598-9b15-4f21-8579-c8ffbb58649c</guid><dc:creator>Dennis Wangerin</dc:creator><description>&lt;p&gt;Hi Gary,&amp;nbsp;&lt;/p&gt;&lt;p&gt;That sounds much like the following issue where the delete button does not work in some other languages than&amp;nbsp;English US&lt;/p&gt;&lt;p&gt;&lt;a href="https://web.sugarcrm.com/support/issues/77965" rel="nofollow" target="_blank"&gt;https://web.sugarcrm.com/support/issues/77965&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This has already been fixed in the coming version 7.9 which is planned to be released in the near future, in the meantime as an immediate&amp;nbsp;workaround if you are in any other language (also English UK) you can already switch the language temporarily to English (US) in order to delete the fields. &amp;nbsp;&lt;/p&gt;&lt;p&gt;Let me know if that was it,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Thanks!&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dennis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>