Viewing Only Active Campaigns

Hi.

I was unable to find an example of setting the Campaign status to Active Only.

I assume I can do this through the CampaignFilterBox where Status (camp_status) is equal to Active.

However, I don't know the commands exactly (OnChangeScript?) Hide??

Let me know.

Thanks,

Stephane

  • 0

    Hello.

    I figured that I would be able to set the default action for camp_status = active, however, this field isn't appearing in the campaigns fields - not sure why? and where is this field?

    Steph

  • 0

    I added this code in the Custom Content box. Not so sure if this is best method but it works.

    crm.ready(function(){

    var status = document.getElementById('_HIDDENcamp_status');

    if(status.value !== 'Active') {

    status.value = 'Active';

    document.getElementById('camp_status').value = 'Active';

    document.EntryForm.HIDDEN_FilterMode.value='t';

    try{

    checkSubmit(document.EntryForm);

    }catch(e){

    document.EntryForm.submit();}

    }

    })

    If anyone has any other suggestions, please reply to this request.

    Thanks,

    Steph