Results 1 to 8 of 8

Thread: standard fields - need to make it required on the UI.

  1. #1
    rtetlow is offline Sugar Community Member
    Join Date
    Oct 2008
    Location
    FL, PA, DE, CA
    Posts
    16

    Default standard fields - need to make it required on the UI.

    I have a case form and I need some of the standard fields that are not required - required ?. I have the on-demand sugarcrm prof. edition 5.1.0 - how do you do that ?. The only way I could see is by changing the field itself - but it wont allow me because presumably its a standard and not a custom field. I couldnt see how you do it in the layout editor either.

    Thanks. in advance.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: standard fields - need to make it required on the UI.

    Hi rtetlow

    You can add the attribute required => 'true' in the editviewdefs.php

    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.

  3. #3
    rtetlow is offline Sugar Community Member
    Join Date
    Oct 2008
    Location
    FL, PA, DE, CA
    Posts
    16

    Default Re: standard fields - need to make it required on the UI.

    Quote Originally Posted by andopes
    Hi rtetlow

    You can add the attribute required => 'true' in the editviewdefs.php

    Cheers
    where do you do that in the UI ?

  4. #4
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: standard fields - need to make it required on the UI.

    what does UI stands for?

    On sugarcrm/custom/Extensions/modules/YOURMODULE/Ext/Vardefs

    you can create a file with the content

    <?php

    $dictionary['<yourmoduke>']['fields']['<field name you want to change']['required'] = 'true';

    ?>

  5. #5
    rtetlow is offline Sugar Community Member
    Join Date
    Oct 2008
    Location
    FL, PA, DE, CA
    Posts
    16

    Default Re: standard fields - need to make it required on the UI.

    Quote Originally Posted by kinshibuya
    what does UI stands for?

    On sugarcrm/custom/Extensions/modules/YOURMODULE/Ext/Vardefs

    you can create a file with the content

    <?php

    $dictionary['<yourmoduke>']['fields']['<field name you want to change']['required'] = 'true';

    ?>
    Sorry - UI stands for User Interface. I dont see the menu path you suggest - are you talking about the on-premise version of sugar ? remember I am running the on-demand (commercial_ version of sugar and do not have access (at least from what I can see) to the operating system to make such modifications.

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: standard fields - need to make it required on the UI.

    Hi rtetlow

    You can edit the file custom/modules/<ModuleName>/metadata/editviewdefs.php

    It has a big array and one of its elements is the field definitions to be displayed into layout.
    You can look for the field to be set as required and add the attribute:
    PHP 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.

  7. #7
    rtetlow is offline Sugar Community Member
    Join Date
    Oct 2008
    Location
    FL, PA, DE, CA
    Posts
    16

    Default Re: standard fields - need to make it required on the UI.

    Quote Originally Posted by andopes
    Hi rtetlow

    You can edit the file custom/modules/<ModuleName>/metadata/editviewdefs.php

    It has a big array and one of its elements is the field definitions to be displayed into layout.
    You can look for the field to be set as required and add the attribute:
    PHP Code:
    displayParams => array('required' => true), 
    Cheers
    I have the on-demand version remember - I dont see where we have access to the source code. So I am assuming we cannot do this if you cannot do it in the user interface.

  8. #8
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: standard fields - need to make it required on the UI.

    Hi rtetlow

    You can create a simple installer which perform the required change to do that.
    Let me know if you need help!

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Required fields on Leads conversion
    By zurti in forum Developer Help
    Replies: 6
    Last Post: 2010-11-04, 03:03 PM
  2. Replies: 6
    Last Post: 2008-01-17, 11:42 AM
  3. required fields during import
    By amirtal33 in forum General Discussion
    Replies: 2
    Last Post: 2006-01-21, 09:58 AM
  4. Blank required fields still saving
    By eggsurplus in forum Help
    Replies: 1
    Last Post: 2005-12-19, 04:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •