JavaScript - Outcome Show and Hide

There may be instances where you wish to change the outcomes that appear in a campaign based on certain criteria occuring. So if a brochure request, only show the brochure request outcome. If a sale, only show the Sale outcome and so on.

So lets start with a few outcomes. By default in our example we have 3 outcomes.
 * Brochure Request
 * Not Interested
 * Sale

By default the script will fill the outcomes. There are some very handy prebuilt javascript functions to help with this functionality.


 * fn_BE_BlankOutcomes
 * fn_BE_AddOutcome( strText, strValue )
 * fn_BE_ResetOutcomes

Using the details would be something along the lines of.

N.B. Make sure that the values for the outcomes that you pass back in are EXACT matches. Case sensisitvity and spacing make a big difference. Please double then triple check that the text in the strText and strValue are precise