Results 1 to 7 of 7

Thread: Make a field in a subpanel not required Sugar 5.5

  1. #1
    ndaley is offline Member
    Join Date
    Jan 2010
    Posts
    9

    Default Make a field in a subpanel not required Sugar 5.5

    Hi

    I would like to make the amount and expected date close fields in the accounts opportunities sub panel not required. I have tried adding

    $dictionary["Opportunities"]["fields"]['amount']['required'] = false;

    to the /custom/extension/modules/opportunities/ext/vardefs/custom.php file. I have also tried adding

    'displayParams'=>array('required'=>true),

    to the amount and date_close arrays in forAccounts.php file in the custom/modules/opportunities/metadata/subpanel directory but it is all to no avail. I would be grateful if someone could point me in the right direction.

    Thanks in advance

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Make a field in a subpanel not required Sugar 5.5

    Quote Originally Posted by ndaley View Post
    Hi

    I would like to make the amount and expected date close fields in the accounts opportunities sub panel not required. I have tried adding

    $dictionary["Opportunities"]["fields"]['amount']['required'] = false;

    to the /custom/extension/modules/opportunities/ext/vardefs/custom.php file. I have also tried adding

    'displayParams'=>array('required'=>true),

    to the amount and date_close arrays in forAccounts.php file in the custom/modules/opportunities/metadata/subpanel directory but it is all to no avail. I would be grateful if someone could point me in the right direction.

    Thanks in advance

    In custom/modules/Opportunities/metadata/editviewdefs.php change 'required' => true to 'required' => false

    Then do a repair
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  3. #3
    ndaley is offline Member
    Join Date
    Jan 2010
    Posts
    9

    Default Re: Make a field in a subpanel not required Sugar 5.5

    Thanks mike but I already have that line in the editviewdefs.php (see attached file). It seems to work in the inser and edit pages in the opportunities section but not for the opportunities sub panel in the accounts section. Do you have any idea how I can get it to work in the sub panel?
    Attached Files Attached Files

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Make a field in a subpanel not required Sugar 5.5

    Quote Originally Posted by ndaley View Post
    Thanks mike but I already have that line in the editviewdefs.php (see attached file). It seems to work in the inser and edit pages in the opportunities section but not for the opportunities sub panel in the accounts section. Do you have any idea how I can get it to work in the sub panel?
    What are you actually trying todo?

    Subpanels display data so required is not relevant

    Are you just trying to remove the fields from the subpanel?
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  5. #5
    ndaley is offline Member
    Join Date
    Jan 2010
    Posts
    9

    Default Re: Make a field in a subpanel not required Sugar 5.5

    Ok I think I have my terminology wrong sorry

    In the accounts section there is an area where a user can create a opportunity whilst viewing an account. I would like to make the amount field in this area not required (as it is in the opportunities create and edit pages)

  6. #6
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Make a field in a subpanel not required Sugar 5.5

    Quote Originally Posted by ndaley View Post
    Ok I think I have my terminology wrong sorry

    In the accounts section there is an area where a user can create a opportunity whilst viewing an account. I would like to make the amount field in this area not required (as it is in the opportunities create and edit pages)
    got you

    edit quickcreatedefs.php
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  7. #7
    ndaley is offline Member
    Join Date
    Jan 2010
    Posts
    9

    Default Re: Make a field in a subpanel not required Sugar 5.5

    Thanks worked a treat

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to make a field NOT required
    By kinshibuya in forum Help
    Replies: 9
    Last Post: 2010-12-30, 03:11 PM
  2. make field required
    By kinshibuya in forum Help
    Replies: 5
    Last Post: 2009-08-04, 08:30 PM
  3. How to make a field required via JS
    By Liior in forum Developer Help
    Replies: 2
    Last Post: 2009-06-09, 12:03 PM
  4. How to make default field not required
    By jim.thornton in forum Developer Help
    Replies: 5
    Last Post: 2009-03-19, 09:29 PM
  5. Replies: 5
    Last Post: 2007-12-05, 05: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
  •