Results 1 to 3 of 3

Thread: Project Name Validation

  1. #1
    qinrui is offline Member
    Join Date
    Nov 2006
    Posts
    6

    Default Project Name Validation

    Hi sugarmaster out there,
    In the project module, i'd like to create a custom field called validated and make it as a check box, and if the project is marked as validated, then the project name can't be changed anymore by anyone.
    And i'd like to make it that we can pass a parameter to the listview so that it will show the yet to be validated project only or all of the project.
    Can someone show me the best way to achieve this?
    Thanks alot..

    » Operating system type and version (Windows XP Pro)
    » Sugar Suite version (4.20d)
    » Webserver type and version (Apache 2.0)
    » PHP version (4.4.3)
    » MySQL server version (4.1.16)
    Last edited by qinrui; 2006-11-17 at 08:01 AM.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Project Name Validation

    Some of your idea can be accomplished using the studio editor, but the "can change the name" part can only be done by making changes to the PHP code. Are you comfortable making changes to PHP?
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    qinrui is offline Member
    Join Date
    Nov 2006
    Posts
    6

    Default Re: Project Name Validation

    Thanks for the reply.
    I managed to add the validated checkbox to the edit view and made it disabled, so that a normal user can create a project and edit the name as long as it isnt validated yet. I've also added the javascript that disabled the textfield for project name if the checkbox is checked.
    So now i need to make a new tab(called validation maybe) that is only accessible to a certain role, which only shows the to be validated project. To validate they will be directed to project editview and they can either change the name or leave it and save.
    So i need a way to pass a parameter that chenge the validated field to true(by default it's false) if the user access the editview page through the validation tab not the normal project tab.
    Is that achievable?
    Btw i'm okay with editing the php code.

Thread Information

Users Browsing this Thread

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

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
  •