Month: April 2018

sugarcrm Make ReadOnly Field

'name' => 'feedback_test_drive_c',            'label' => 'LBL_FEEDBACK_TEST_DRIVE',            'displayParams' =>            array (              'field' =>              array (                'readonly' => 'readonly',              ),            ),  


April 29, 2018 0

Implement SMS on SugarCRM meeting module

Step 1: first make one checkbox on meeting module name send_sms_c Step 2: write below code on /var/www/D2/include/javascript/sugar_grp1.js after line:135   function check_form(formname){var go_func = 0; var str1 = location.href; var str2 = 'ModuleBuilder'; var url_check =str1.indexOf(str2);if (( url_check == -1 ) && (typeof(module_sugar_grp1) != 'undefined')){funcmod (module_sugar_grp1);};if(typeof(siw)!='undefined'&&siw&&typeof(siw.selectingSomething)!='undefined'&&siw.selectingSomething)return false;return validate_form(formname,'');}   function funcmod(mod1){  if((mod1 == 'Meetings')…
Read more


April 24, 2018 0

SugarCRM Contact Automatic find Birthday and send sms

<?php $sqlcon = mysql_connect('localhost',user,password); $sql_db = mysql_select_db("db",$sqlcon); $result0 = "Select * from contacts where deleted=0"; $res0 = mysql_query($result0); $b1=null; $c1=null; $a1=null; while ($row0 = mysql_fetch_array($res0)) {     $salutation = $row0['salutation'];   $fname = $row0['first_name'];   $lname = $row0['last_name']; $nm =$salutation." ".$fname." ".$lname;   $bday = $row0['birthdate']; $bday1= explode("-",$bday); $bdayc=$bday1[2]."-".$bday1[1]; $a1=$a1.','.$nm; $b1 = $b1.','.$bdayc; $nbday=explode(",",$bdayc);   $mob = $row0['phone_mobile'];…
Read more


April 1, 2018 0