Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Getting Started, Learning, Etc.

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old December 5th, 2016, 12:21 PM
ricky10ss ricky10ss is offline
Junior Community Member
 
Join Date: Mar 2009
Posts: 35
Default Suppress specific pages on two values

Below is the onRecordStart rule I was using but I found out I need to adjust to another field. The switch rule below is turning on the specific pages based off their plan. But there is a value field called "Amount" that if there is no value for 250, 500, 750 and 1000 plans they do not get 250_500_750_1000NonInsured P1 or 250_500_750_1000NonInsured P2. What would you recommend doing for this?

switch (Field("PLANOPTION"))
{
case "200":
FusionPro.Composition.SetBodyPageUsage("200 P1", true)
FusionPro.Composition.SetBodyPageUsage("200 P2", true)
FusionPro.Composition.SetBodyPageUsage("200NonInsu red P1", true)
FusionPro.Composition.SetBodyPageUsage("200NonInsu red P2", true)
break;

case "250":
FusionPro.Composition.SetBodyPageUsage("250 P1", true)
FusionPro.Composition.SetBodyPageUsage("250 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

case "500":
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P1", true)
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

case "750":
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P1", true)
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

case "1000":
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P1", true)
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

}
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.