<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarai.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>How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/dev-club/f/questions-answers/380/how-to-make-case-description-readonly-after-save</link><description>How to make Cases description readonly in editview after it has been save? TIA, Longki Dela Cruz</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17102?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 04:36:10 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:39dcfadb-12e6-425a-9d9b-eaa1c745bf1e</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;thanks for this &lt;a href="https://sugarclub.sugarcrm.com/members/ajay01"&gt;Ajay Kumar&lt;/a&gt; i guess ill stick with the javascript you gave me.. hmm this would also suffice. thanks for giving all the solution either by php or js. :-)&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Longki&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17101?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 03:56:32 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:3598b0d8-a501-4da6-82de-1f3f4eb3cbda</guid><dc:creator>Ajay Kumar</dc:creator><description>&lt;p&gt;Hi Longki,&lt;/p&gt;&lt;p&gt;You have to make few changes in your dependency code to make it work when it is saved.You have given triggerFields as description,so dependency will get triggered,when we filled value for that.&lt;/p&gt;&lt;p&gt;But,If you want to make it readonly once it is saved,you have to remove description field from triggerFields.Then it will work properly.&lt;/p&gt;&lt;p&gt;Here is the modified dependency code.check it out.&lt;/p&gt;&lt;pre class="php"&gt;&amp;lt;?php
$dependencies['Cases']['description_readonly'] =&amp;nbsp;&amp;nbsp;&amp;nbsp; array(
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;hooks&amp;#39; =&amp;gt; array(&amp;quot;edit&amp;quot;),
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;trigger&amp;#39; =&amp;gt; &amp;#39;true&amp;#39;, //check if&amp;nbsp; the field has a value so that it will trigger
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;triggerFields&amp;#39; =&amp;gt; array( ),
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;onload&amp;#39; =&amp;gt; true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Actions is a list of actions to fire when the trigger is true
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;actions&amp;#39; =&amp;gt; array(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;ReadOnly&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The parameters passed in will depend on the action type set in cases.description field
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;params&amp;#39; =&amp;gt; array(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;target&amp;#39; =&amp;gt; &amp;#39;description&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;value&amp;#39;=&amp;gt; &amp;#39;not(equal($description,&amp;quot;&amp;quot;))&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),
&amp;nbsp;&amp;nbsp;&amp;nbsp; ),
);
&lt;/pre&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17100?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 01:52:14 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:7a72cc08-70a4-4079-b67c-2366c1aebb3a</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;Found the very correct solution emailed by &lt;a href="https://sugarclub.sugarcrm.com/members/ajay01"&gt;Ajay Kumar&lt;/a&gt; to me :-) as for the latter after you hover out to the field it will be automatically set to readonly even if you havent saved it yet. Here&amp;#39;s the fix.&lt;/p&gt;&lt;p&gt;QOUTE from Ajay:&lt;/p&gt;&lt;p&gt;Hi Longki,&lt;/p&gt;&lt;p&gt;Good day too!&lt;/p&gt;&lt;p&gt;1.You can make certain fields readonly by writing dependency.&lt;/p&gt;&lt;p&gt;2.If you want to make it fields to be readonly only specific views, you can try below.&lt;/p&gt;&lt;p&gt;Extend &amp;quot;buildGridsFromPanelsMetadata&amp;quot; this method to custom,and push your fields into this.noEditFields variable,this is how sugar is making fields readonly.&lt;/p&gt;&lt;p&gt;Below is the code snippet,you can copy this code and make changes according to your condition.I tried in recordview.&lt;/p&gt;&lt;p&gt;Note:we no need to call this method on initialize.&lt;/p&gt;&lt;p&gt;_buildGridsFromPanelsMetadata:function(panels){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var noEditFields = new Array();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._super(&amp;#39;_buildGridsFromPanelsMetadata&amp;#39;,[panels]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noEditFields.push(&amp;#39;phone_alternate&amp;#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.noEditFields=noEditFields;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/p&gt;&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;&lt;p&gt;AjayKumar B&lt;/p&gt;&lt;p&gt;HTH,&lt;/p&gt;&lt;p&gt;Longki Dela Cruz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17099?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2016 11:00:21 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:bdf1aa5b-869c-46e9-b1b9-15a1e02cceec</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;i solved it using this &lt;a href="http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/Extension_Framework/Dependencies/" rel="nofollow" target="_blank"&gt;http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/Extension_Framework/Dependencies/&lt;/a&gt; &lt;/p&gt;&lt;p&gt;i created a file /custom/Extension/modules/Cases/Ext/Dependencies/description_readonly.php&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;$dependencies['Cases']['description_readonly'] =&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;hooks&amp;#39; =&amp;gt; array(&amp;quot;edit&amp;quot;),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;trigger&amp;#39; =&amp;gt; &amp;#39;not(equal($description,&amp;quot;&amp;quot;))&amp;#39;, //check if&amp;nbsp; the field has a value so that it will trigger&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;triggerFields&amp;#39; =&amp;gt; array(&amp;#39;description&amp;#39;),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;onload&amp;#39; =&amp;gt; true,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Actions is a list of actions to fire when the trigger is true&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;actions&amp;#39; =&amp;gt; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;ReadOnly&amp;#39;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The parameters passed in will depend on the action type set in cases.description field&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;params&amp;#39; =&amp;gt; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;target&amp;#39; =&amp;gt; &amp;#39;description&amp;#39;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;value&amp;#39; =&amp;gt; &amp;#39;true&amp;#39;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/p&gt;&lt;p&gt;);&lt;/p&gt;&lt;p&gt;then created a blank file /custom/modules/Cases/Ext/Dependencies/deps.ext.php&lt;/p&gt;&lt;p&gt;so that after Quick Repair and Rebuild the description_readonly.php will be merged there.&lt;/p&gt;&lt;p&gt;after QRR you will find in that file the auto-generated merging of codes..&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;// WARNING: The contents of this file are auto-generated.&lt;/p&gt;&lt;p&gt;//Merged from custom/Extension/modules/Cases/Ext/Dependencies/description_readonly.php&lt;/p&gt;&lt;p&gt;$dependencies['Cases']['description_readonly'] =&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;hooks&amp;#39; =&amp;gt; array(&amp;quot;edit&amp;quot;),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;trigger&amp;#39; =&amp;gt; &amp;#39;not(equal($description,&amp;quot;&amp;quot;))&amp;#39;, //check if&amp;nbsp; the field has a value so that it will trigger&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;triggerFields&amp;#39; =&amp;gt; array(&amp;#39;description&amp;#39;),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;onload&amp;#39; =&amp;gt; true,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Actions is a list of actions to fire when the trigger is true&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;actions&amp;#39; =&amp;gt; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;ReadOnly&amp;#39;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The parameters passed in will depend on the action type set in cases.description field&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;params&amp;#39; =&amp;gt; array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;target&amp;#39; =&amp;gt; &amp;#39;description&amp;#39;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;value&amp;#39; =&amp;gt; &amp;#39;true&amp;#39;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/p&gt;&lt;p&gt;);&lt;/p&gt;&lt;p&gt;HTH,&lt;/p&gt;&lt;p&gt;Longki&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17098?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2016 08:22:17 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:211db6a1-f186-440c-8add-0fd76368a4a7</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/changezkhan"&gt;Sohan Tirpude&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;THanks for the reply. In the _render function sir?&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Longki&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17097?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2016 07:48:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:aa0c1e52-b9df-4f63-869c-d23aa16d1367</guid><dc:creator>Sohan Tirpude</dc:creator><description>&lt;p&gt;Hello Longki,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can js code like this,&lt;/p&gt;&lt;p&gt;&lt;span class="pun" style="color:black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;pre class="javascript"&gt; $(&amp;#39;#description&amp;#39;).prop(&amp;#39;readonly&amp;#39;, true);
&lt;/pre&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me know, if it works or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17096?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2016 04:52:01 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:bdc14f9c-d0f3-4cc3-80f5-202d62c5070e</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;is there a way using logic hooks after save wherein the fields['description'][readonly]=true;?&lt;/p&gt;&lt;p&gt;or any js to make this possible? readonly in editview?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17095?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 14:16:51 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:3199b335-46bd-4b2a-b816-ee4c42ef50e5</guid><dc:creator>Liam Hastings</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/longki0522"&gt;Roland Cadavos&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You can change the arrangement slightly to your personal preference, but when I done this I set Field 1&amp;#39;s formula to be show Field 1 when Field 2 is empty. For Field 2 I set the formula to be show Field 2 when Field 2 is not empty. This means that the fields only swap once Field 2 is set.&lt;/p&gt;&lt;p&gt;The principal is the same for both really, however rather than having Field 2 as calculated I created a simple Advanced Workflow to copy the value across upon the record being saved. This worked nicely as it means the fields don&amp;#39;t actually swap over until the record is created. I then put a Role in that specifies Field 2 is Read Only for the User I set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17094?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 12:42:49 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:bc43520e-ff59-4d30-96f2-1db25e433e90</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;Can you also post the things you done wherein a &lt;span style="color:#000000;font-size:14px;"&gt;set of authorised Users could edit the field and I utilised Advanced Workflow instead of having a calculated field.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17093?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 12:28:35 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:4281b643-f7a7-450a-bc37-832c034b9b9b</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/LiamH"&gt;Liam Hastings&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;I have cloned the default description(Field1) textfield in studio under Case module, i named it description_c (Field2).&lt;/p&gt;&lt;p&gt;Checked dependent: visible if formula: &lt;span style="color:#000000;font-size:14px;"&gt;not(equal($description,&amp;quot;&amp;quot;)).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;font-size:14px;"&gt;Am i doing the correct solution?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;font-size:14px;"&gt;Additional question: What is the formula for Field1? :-)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;font-size:14px;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;font-size:14px;"&gt;Longki&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17092?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 11:57:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:30f85be2-20ca-447a-94c7-dcacee9ba2cd</guid><dc:creator>Liam Hastings</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/longki0522"&gt;Roland Cadavos&lt;/a&gt;&lt;/p&gt;&lt;p&gt;That is fine, it just means that if they make a mistake when initially creating the Case that nobody will be able to fix the issue. This is the only reason I want to bring it to your attention as I conveniently done this last week for a customer, where I made it so that only a set of authorised Users could edit the field and I utilised Advanced Workflow instead of having a calculated field.&lt;/p&gt;&lt;p&gt;If that is what you want then one want 2 fields.&lt;/p&gt;&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Field 1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Allows you to enter the Case text, set to not be shown via dependency when Field 2 is not empty.&lt;/p&gt;&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Field 2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Shows the value of Field 1, set vie dependency to show when it is not empty.&lt;/p&gt;&lt;p&gt;This is the setup for the fields to swap other. Personally I would have only field 2 as reportable so you don&amp;#39;t see it twice in reporting and have each field as a single column (one on top of the other). The reason I would do the single columns on top of each other is that when Field 1 hides and Field 2 shows, you don&amp;#39;t notice much of a difference so it is not a big change for the User.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17091?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 10:57:26 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:2b116469-21e2-4525-bf55-353c565e5973</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/LiamH"&gt;Liam Hastings&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Yes, so that they will be forced to add Note on the Case because the description has been disabled after saving.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Longki&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17090?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 10:35:58 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:e48ff9b2-e6eb-4773-a96b-c239930dacaa</guid><dc:creator>Liam Hastings</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/longki0522"&gt;Roland Cadavos&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;If you need it to be locked for all Users once it has been entered, that means that nobody will ever be able to change it without importing and updating or mass updating the record. Is this what you want?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17089?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 10:08:26 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:13a53c69-1b7d-40a4-b318-24e00a37eac9</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;Hi Liam,&lt;/p&gt;&lt;p&gt;How about locked out of all user wherein after saving, it will be on read.only on all views.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Longki&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17088?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 10:01:02 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:187504bb-aaaa-491c-9196-ac37af4322b4</guid><dc:creator>Liam Hastings</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/longki0522"&gt;Roland Cadavos&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;Ah so you have Advanced Workflows, this opens up a new option where you could use this. It depends on the specifics for how you want this to work, and if you need authorised users to be able overwrite the entered text or if it should be locked out for all Users.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17087?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 09:42:46 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:56fcf3a0-abf5-4eac-ba12-c8b2e1104251</guid><dc:creator>Roland Cadavos</dc:creator><description>&lt;p&gt;Hi Liam,&lt;/p&gt;&lt;p&gt;Im using Sugar Enterprise 7.6. Can help me get through this? :-)&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Longki&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make Case description readonly after save?</title><link>https://sugarclub.sugarai.com/thread/17086?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 09:05:04 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:68837b56-c456-496f-9311-588012334838</guid><dc:creator>Liam Hastings</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/longki0522"&gt;Roland Cadavos&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;I presume that you only want it to become read-only once it has been populated with something. There are a few ways that you can do this, with each option depending slightly on the version/edition of Sugar you are using and the exact rules that need to be enforced.&lt;/p&gt;&lt;p&gt;However a base level resolution for this is to create a duplicate description field and make one a calculated field to copy the value of the other. You would then set dependencies so that the initial fields hides when the calculated one is populated with something, and use the same principal on the calculated field. This will make it look as if the field is suddenly becoming read-only, where in fact it is simply swapping the fields over.&lt;/p&gt;&lt;p&gt;If you are looking for something more than this let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>