Results 1 to 8 of 8

Thread: Making an existing custom field mandatory as a required field

  1. #1
    crmtamer is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    15

    Question Making an existing custom field mandatory as a required field

    I was asked to make an existing custom dropdown field mandatory (required). Checking the Required checkbox in studio had no effect on the field, because, I assume, it had already been created. (Running Repair Custom fields after checking the box had no effect.)

    I made the following changes and it appear to be working:

    In EditView.html I added the following: <span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> , which now causes the required field red asterisk to appear in the edit screen.

    In /opt/sugarcrm/cache/dynamic_fields/Opportunities/fields.php I changed: 'required_option' => 'required', (changed from 'optional' to 'required')


    Is there anywhere else I should make a change to code? And is there any future impact that I should be aware of?
    Last edited by crmtamer; 2007-07-10 at 03:54 PM.

  2. #2
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: Making an existing custom field mandatory as a required field

    Did you try the repair custom fields in studio?

  3. #3
    lvangool is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Near Rotterdam, Holland
    Posts
    280

    Default Re: Making an existing custom field mandatory as a required field

    Why oh why are you editing in /cache? The name 'cache' suggests something temporary...it won't last!

    you should take a look at vardefs and field_arrays

  4. #4
    crmtamer is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    15

    Default Re: Making an existing custom field mandatory as a required field

    This custom field is not found in either vardefs or field_arrays. Where else are custom field definitions stored?
    Last edited by crmtamer; 2007-07-10 at 08:00 PM.

  5. #5
    gunni is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Cologne, Germany
    Posts
    364

    Default Re: Making an existing custom field mandatory as a required field

    Of which field exactly are you talking?

  6. #6
    crmtamer is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    15

    Default Re: Making an existing custom field mandatory as a required field

    It is a custom dropdown field in the Opportunities module (created in Studio).

  7. #7
    mjp9119 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    70

    Default Re: Making an existing custom field mandatory as a required field

    Quote Originally Posted by crmtamer
    This custom field is not found in either vardefs or field_arrays. Where else are custom field definitions stored?
    Hi, I´m no sugar wizzard but I've asked that question to myself a few weeks ago and the answer
    my friend is.....FIELDS_META_DATA !!!
    ( it´s just a table )
    I´ve notted that there´s a table with that name in the sugar_database.
    better take a look in there..you'll be glad you did.
    Good luck.

  8. #8
    crmtamer is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    15

    Default Re: Making an existing custom field mandatory as a required field

    Thank you! That's exactly what I was looking for -- I found the field in fields_meta_data and changed it from optional to required, so hopefully that will ensure it will stay that way in the future.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Field add not visible is Edit Layout
    By tylerpoint in forum Help
    Replies: 0
    Last Post: 2007-07-09, 05:56 AM
  2. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  3. Replies: 7
    Last Post: 2006-06-06, 07:56 PM
  4. Replies: 3
    Last Post: 2005-10-21, 05:28 PM
  5. Making custom field searchabe
    By magick727 in forum Developer Help
    Replies: 0
    Last Post: 2005-10-05, 03:40 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
  •