Building on SugarCRM by John Mertic

Building on SugarCRM by John Mertic

Author:John Mertic [John Mertic]
Language: eng
Format: epub, mobi, pdf
Tags: COMPUTERS / Programming Languages / PHP
ISBN: 9781449309794
Publisher: O'Reilly Media
Published: 2011-07-18T16:00:00+00:00


Figure 3-2. Formula Builder for the amount field

We are using an ifElse function condition that is nested to pull this off, having a check for each possible value of ‘Level’.

Note

When building formulas, the field references reflect the database field name (‘$opportunity_type’) instead of the field label (‘Level’).

Next comes the ‘Sponsorship Name’ field, which is what is shown everywhere in the application as the primary field for the module. We don’t want people to just enter anything here, but to keep it in a good form that can be easy to read and understand. To do this, we’ll also leverage the ‘Level’ field, here just concatenating it with the string ‘Sponsorship’ to display in this field.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.