I've created a drupal web-form that creates a household and 3 activities (each an activity type "referral" assigned to different department). I've also created conditional formatting to only show the activity details activity details for referrals to the departments that have been selected. So far so good.
The problem i'm facing is that there are always 3 activities created.
If, for example the user selects only that a new household should only have a referral only to departments 2 & 3 (ie. not to dept 1), i only want to create 2 activities, but 3 activities are created.
I think this is because in the webform-civicrm tab i've created three activities with the household members assigned. Is there a way to have a variable number of activities created?