Send an eCard only if a donation is given in honor of someone

Options

How do I configure a donation form such that the eCard option is only available to donors who are giving in honor of someone?  We want to use the eCard as a way to notify the honoree of the gift, should the donor choose to do so.

If that isn't an option, is there a way for us to automate the emails to Honorees informing them of a gift that was made in their name?

Tagged:

Comments

  • What you'd need to do is add JavaScript in an HTML caption on the form to show or hide the Ecard fields dependent on whether or not the "Honor Gift - Show Honor Fields" checkbox is checked, like so:



    <script type="text/javascript">
    honorCheckbox=document.getElementById('tribute_show_honor_fieldsname');
    function showHideEcards(){
    if(honorCheckbox.checked){
    document.getElementById('select_grid_Row').style.display='';
    }
    else{
    document.getElementById('select_grid_Row').style.display='none';
    }
    }
    Utils.addEvent(honorCheckbox,'click',showHideEcards);
    addOnLoadHandler(showHideEcards);
    </script>



    Here I've only written the function to show/hide the Ecard Selection element, so you'd need to add the IDs for each of the Ecard fields' parent containers (each table row that contains the field and its label should have a unique ID).

  • Noah Cooper:

    What you'd need to do is add JavaScript in an HTML caption on the form to show or hide the Ecard fields dependent on whether or not the "Honor Gift - Show Honor Fields" checkbox is checked, like so:



    <script type="text/javascript">
    honorCheckbox=document.getElementById('tribute_show_honor_fieldsname');
    function showHideEcards(){
    if(honorCheckbox.checked){
    document.getElementById('select_grid_Row').style.display='';
    }
    else{
    document.getElementById('select_grid_Row').style.display='none';
    }
    }
    Utils.addEvent(honorCheckbox,'click',showHideEcards);
    addOnLoadHandler(showHideEcards);
    </script>



    Here I've only written the function to show/hide the Ecard Selection element, so you'd need to add the IDs for each of the Ecard fields' parent containers (each table row that contains the field and its label should have a unique ID).

    Thank Noah.  Will this work even if the eCard fields are on a different page from the main form?

  • Jo-Ann Tan:

    Thank Noah.  Will this work even if the eCard fields are on a different page from the main form?

    You'd need to pass something in the URL when you link from page one to page two in that case, but should still be doable.

Categories