Results 1 to 6 of 6

Thread: How to get selected values of Multiselect field on after save

  1. #1
    lrgervais Guest

    Default How to get selected values of Multiselect field on after save

    Hello to everyone,

    i'm facing a problem. i have defined a Multiselect field in Studio. I Want after a contacts is save to get the selected values of this field.
    How can i achieve this?
    Can someone please helps me?

    best regards,

    Stev

  2. #2
    kir
    kir is offline Sugar Community Member
    Join Date
    Nov 2011
    Posts
    702

    Default Re: How to get selected values of Multiselect field on after save

    Quote Originally Posted by lrgervais View Post
    Hello to everyone,

    i'm facing a problem. i have defined a Multiselect field in Studio. I Want after a contacts is save to get the selected values of this field.
    How can i achieve this?
    Can someone please helps me?

    best regards,

    Stev
    take keys from DB field for your multiselect

    see explode and implode php function in manual to handle such field

    retrieve values by keys

  3. #3
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    5,205

    Default Re: How to get selected values of Multiselect field on after save

    In addition, the value is just a string. Values are separated by commas and delimited by carets, as such:

    With one value:

    ^OneValue^

    With multiple values:
    ^FirstValue^,^SecondValue^,^ThirdValue^
    Regards,

    Angel Magaņa
    Technical Solutions Architect
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

  4. #4
    kir
    kir is offline Sugar Community Member
    Join Date
    Nov 2011
    Posts
    702

    Default Re: How to get selected values of Multiselect field on after save

    Quote Originally Posted by Angel View Post
    In addition, the value is just a string. Values are separated by commas and delimited by carets, as such:

    With one value:

    ^OneValue^

    With multiple values:
    ^FirstValue^,^SecondValue^,^ThirdValue^
    you right, Angel !
    Hope you will agree that better to say
    DB field stores array keys of selected values
    ^key1^,^key2^,^key3^

  5. #5
    davidboris's Avatar
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,525

    Default Re: How to get selected values of Multiselect field on after save

    Web : http://www.urdhva-tech.com
    Twitter : @urdhvatech
    Email : contact@urdhva-tech.com
    Blog : Urdhva-Tech
    Skype : urdhvatech

    Our Premium Projects for SugarCRM:
    Premium theme for SugarCRM CE (Community Edition 6.5+ with 4 combinations, Black + Orange/Red/Green/Blue, bootstrap3 based)
    Duplicate detector to avoid duplicate data entry.
    Customer Self Service Portal for All Flavours.
    tagMe A complete tag management for SugarCRM.
    Meeting Map Reminder Meeting reminder with Gmap in Email

  6. #6
    lrgervais Guest

    Default Re: How to get selected values of Multiselect field on after save

    Thank you'all

    it works fine.

    regards,
    Stev

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2013-01-01, 06:16 AM
  2. Multiselect Field not holding values on Edit
    By chrislynch8 in forum Help
    Replies: 1
    Last Post: 2012-01-30, 02:52 PM
  3. values of dropdown / multiselect field
    By z3r0 in forum Developer Help
    Replies: 4
    Last Post: 2010-02-16, 02:22 PM
  4. Searching a Custom Field MultiSelect for ALL Selected Option
    By chriscaputo in forum Developer Help
    Replies: 2
    Last Post: 2009-09-29, 03:37 PM
  5. Import values in a Multiselect field
    By pitchalov in forum Help
    Replies: 3
    Last Post: 2008-07-10, 05:35 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
  •