Results 1 to 3 of 3

Thread: Studio added fields checked required in 6 not working

  1. #1
    dmetelski is offline Senior Member
    Join Date
    Jul 2010
    Posts
    38

    Question Studio added fields checked required in 6 not working

    Hi all,

    I added a field in Studio and checked off required. It seems that does nothing but put a red asterisk next to the label because if I don't put a value in it still gets saved. I then put the attribute requred=>true in the edit.view.php. HELP!

    Thanks,
    Deon

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Studio added fields checked required in 6 not working

    Hi,

    Are you sure you have chosen a right place to modify the variables to make it required?

    Either extend the vardef and make the field required or use displayParams in editviewdefs.php.

    P.S. After each extended changes you need to quick repair and rebuild cache.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    dmetelski is offline Senior Member
    Join Date
    Jul 2010
    Posts
    38

    Default Re: Studio added fields checked required in 6 not working

    It seems I found a bug. I duplicated on 2 clean installs. When creating a field if you use an apostrophe in the label name it causes required fields to be ignored and will just save the record. This drove me nuts until I systematically checked everything. Going to look at bug tracker right now.

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. DevToolKit - Required fields not working
    By Aisha16 in forum Developer Help
    Replies: 13
    Last Post: 2011-10-09, 10:25 AM
  2. Added fields required not working
    By dmetelski in forum Developer Help
    Replies: 0
    Last Post: 2010-07-31, 09:04 PM
  3. Replies: 0
    Last Post: 2008-10-24, 11:02 PM
  4. Replies: 1
    Last Post: 2008-01-04, 02:39 AM
  5. Replies: 1
    Last Post: 2005-02-26, 04:46 AM

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
  •