Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Dependent field - How to handle lost opportunity?

Dependent field - How to handle lost opportunity? 4 months 1 week ago #77593

  • Televic
  • Televic's Avatar
  • Offline
  • New Member
  • Posts: 6
  • Karma: 0
Hi, I am testing SuiteCRM for implementation in our company and a first issue/question popped up.

In our current CRM system, when an opportunity is lost, the user gets a pop up in which he needs to fill in some fields (reason of lost, competitor who won the deal, ...).
In SuiteCRM, I don't see any functionality like that.

I was hoping on some logic like "dependent fields", but this doesn't seem to exist in SuiteCRM neither.

Therefore, 2 questions:
  • How do you handle normally such "dependent but mandatory information", like reason of lost opportunity?
  • Are "dependent fields" planned in a next release of SuiteCRM? Or any plugin that enables such functionality? Would solve a lot of my current open questions!
  • [/ul]
    The administrator has disabled public write access.

    Dependent field - How to handle lost opportunity? 4 months 1 week ago #77623

    • pgr
    • pgr's Avatar
    • Offline
    • Administrator
    • Posts: 10244
    • Thank you received: 1533
    • Karma: 353
    Hi, welcome.

    You have something called "Calculated fields" which you update from within a Workflow.

    To do it without Workflows, you can use a simple code customization in a logic hook.

    But let me understand your requirement better: what do you mean by "an opportunity is lost"? What is the system event for that? The opportunity is saved by the user with a status of "lost", is that it?

    My SuiteCRM In-depth blog.
    Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
    The administrator has disabled public write access.

    Dependent field - How to handle lost opportunity? 4 months 1 week ago #77640

    • Televic
    • Televic's Avatar
    • Offline
    • New Member
    • Posts: 6
    • Karma: 0
    Thanks for your quick reply!

    The use case that I mean is:
    * The user heard from the prospect that the deal is lost.
    * The user updates the status of the opportunity to "Closed - Lost"
    * At that moment, two fields "appear" or they become mandatory: "Reason lost =" and "Competitor ="
    * The user must select in both fields the correct value.

    This allows us to analyze for example the number of deals lost against competitor x or for reason y and adapt our sales strategy accordingly.

    These fields only make sense when the opportunity reached the stage "Closed - lost", so it would make no sense to make them mandatory earlier.
    If they are always there, there is a risk that the user "forgets" to update them when they should get a value...

    I hope this makes make question any clearer.
    The administrator has disabled public write access.

    Dependent field - How to handle lost opportunity? 4 months 1 week ago #77711

    • pgr
    • pgr's Avatar
    • Offline
    • Administrator
    • Posts: 10244
    • Thank you received: 1533
    • Karma: 353
    I see.

    I'm afraid that kind of customization is not very straight-froward to achieve in SuiteCRM, unless you are a PHP developer.

    You need to override the view class to inject some Javascript, and then that Javascript can handle user events and make layout changes according to the Opportunity Status, for example.

    My SuiteCRM In-depth blog.
    Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
    The administrator has disabled public write access.

    Dependent field - How to handle lost opportunity? 4 months 1 week ago #77721

    • amariussi
    • amariussi's Avatar
    • Offline
    • SuiteCRM Is My Life
    • Posts: 1299
    • Thank you received: 284
    • Karma: 65
    I have solved a similar requirement for someone here in the Forum.

    If you are a developer you can modify it to your needs.

    Read the whole post here:

    suitecrm.com/suitecrm/forum/suitecrm-7-0...create-dynamic-field
    The administrator has disabled public write access.

    Dependent field - How to handle lost opportunity? 4 months 1 week ago #77723

    • japio
    • japio's Avatar
    • Offline
    • Senior Member
    • Posts: 58
    • Thank you received: 6
    • Karma: 0
    Hi Televic,

    You can do this easily without any coding using a add-on called "Dynamic Panels", which is available in the store. store.suitecrm.com/addons/dynamic-panels
    Besides panels it also enables dynamic fields based on value(s) of other fields in a module and can set fields to be mandatory.
    I would recomment you try the add-on for 30-days and test if it works for you.
    If you need some assistance, let me know.

    Kr, Japio
    The administrator has disabled public write access.
    The following user(s) said Thank You: Televic

    Dependent field - How to handle lost opportunity? 4 months 1 week ago #77727

    • Televic
    • Televic's Avatar
    • Offline
    • New Member
    • Posts: 6
    • Karma: 0
    This looks exactly like what I'm looking for. I will test it out... Thanks a lot!
    The administrator has disabled public write access.
    Time to create page: 0.060 seconds
    Powered by Kunena Forum