Hello, I need your help
I want to know how to do fields and dropdown mandatory in Sugar.
I refer to fields predefined by sugar, for example in Cases the field "priority" that it is a dropdown
Thank You
Hello, I need your help
I want to know how to do fields and dropdown mandatory in Sugar.
I refer to fields predefined by sugar, for example in Cases the field "priority" that it is a dropdown
Thank You
for making a field required you need to override the vardef of your module
Example :
Create a file in below directory for upgradesafe
custom/Extension/modules/<YourModule>/Ext/Vardefs/
anyname.php
after it repiar & rebuild cahce & Db, run the query given by the repair DbPHP Code:$dictionary["Account"]["fields"]["<FieldName>"]['required'] = true;
Best Regards
---------------------------------------
Jaydeepsinh Sagar
You just need to edit the custom/modules/Cases/metadata/editviewdefs.php
Go to "priority" field definition and add this attribute:
Go to Admin -> Repair -> Quick Repair and RebuildPHP 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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks