I'm creating a custom button and running into some issues. When users click the button, it should automatically run a few different docgen packages. It should run 2 packages and also run 2 other packages if certain conditions are met. On my custom object, I have it setup so the required conditions are met for the 2 additional packages, but when I click the button I only get 1 package to run and that package is one of the conditional packages.
Below is my code:
/apex/loop__looplus?&eid={!Client_Checklist__c.Id}&accountId={!Client_Checklist__c.CompanyId__c}&autorun=true&ddpIds=a0jK0000003k9ucIAA%2Ca0jK0000003kF1PIAU,{!IF(Client_Checklist__c.sdocs_web_indicator__c=TRUE, "a0jK0000003k9svIAA", "")},
{!IF(ISPICKVAL(Client_Checklist__c.CBP_Checklist_Status__c, "Complete"), "a0jK0000003sRqCIAU", "")}
The only package I get to run is the last one that is dependent on the checklist status picklist equal to complete. Any thoughts on how to get the others to work?