Good Day
i am quite a newby at sugar and would like to know if anyone could assist me with the following:
I need to get my foreign key set as a mandatory field in my tab have customised.
Regards,
Good Day
i am quite a newby at sugar and would like to know if anyone could assist me with the following:
I need to get my foreign key set as a mandatory field in my tab have customised.
Regards,
what? i didn't understand could you be more specific?
Priscila Kin Yamamoto Joranhezon
Phone: +55 61 32010000
priscila.joranhezon@nct.com.br
NCT Informática Ltda
Hi we did setup a new database for our project and now has have several foreign keys in the database we need to set as mandatory fields in sugar. However when we ad the fields in the module builder it just appear as a small thin box with no description of the name whatsoever..... i found this advice on the forum though, think it would suffice?
if($field == "billing_address_city" || $field == "billing_address_state")
{
$this->script .= "addToValidate('".$this->formname."', '".$prefix.$field."', '".$type . "', true,'". $this->stripEndColon(translate($displayName,$this->sugarbean->module_dir)) . "' );\n";
}else{
$this->script .= "addToValidate('".$this->formname."', '".$prefix.$field."', '".$type . "', $required,'". $this->stripEndColon(translate($displayName,$this->sugarbean->module_dir)) . "' );\n";
}
You just need to add the attribute
at field defs in editviewdefs.phpPHP Code:'displayParams' => array(
'required' => true,
),
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thanks so much!!!!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks