Making a responsive donation form default to sustaining gift instead of one-time gift

Options
Hi everyone,


I am working on modernizing the donation form for my organization's website. One-time and sustaining donations need to be completed on different forms so that we can ensure everything is coded correctly on the back end.


I have not been able to find a way to have this donation form default to sustaining (monthly) donations.


I have tried modifying the "Pre-Selected Gift Type" field in LO, but this did not resolve my issue. I have also tried to change the coding of the responsive form, but I can't seem to find the element that decides whether one-time or sustainer is automatically selected.


Any ideas would be greatly appreciated.
https://longlive.monolake.org/site/SPageServer/?pagename=donate_checkout_monthly


Thank you for your help!

 
Tagged:

Comments

  • I think the issue is that you're really looking for 2 buttons to be selected by default - the Monthly option and the level amount, in this case the $35 button.


    Just throw some javascript in an html caption and toggle the selected values for the one-time and monthly buttons.
  • Andrew:

    I have been investigating this same issue. It seemed that setting the donation form defaults should carry over into the responsive form. I had submitted this to support and they filed it as an issue with Luminate developers.  "They will be investigating the overall issue for why using Secure Checkout does not pull from the LO form and use the desired option for the pre-selected gift type." And that the next possible release for LO won't be until next year. 


    Daryl, your solution sounds easy except that I have no idea how 'some javascript' would be written. Maybe you could throw us a snippet?

    -Gwendolyn
  • Gwendolyn, do you have a link to a form where you're trying to set the default as monthly? If so I can take a look.
  • Ok I've been looking at the page and unfortunately you might have to wait for Support on this one :\\


    I wrote a script that checks either the one-time or the monthly and I made it so you could have whichever one pre-selected when the script loads along with which level amount - basically, if you wanted the form to start out at one-time with an amount of $25 you could set it one way, or just change a couple lines and it could start out at monthly with an amount of $50. The issue I ran into is that the labels and inputs are checked, but it's not updating the amount when trying to go to the checkout. That appears to be an issue with a script that's being loaded in - https://secure.riverkeeper.org/js/don2/secure_checkout/donation_levels.js


    I don't think there's anyway I can overwrite that script, and I'm guessing it's one being created with the form and not a script that your org made, hence why you might need to wait for Support to find a solution. If you have an FTP you could ideally save another script over that one directly on the server, but I wouldn't recommend doing that.
  • Hi Gwendolyn and Daryl,


    Thank you for your comments! I was able to force the form I used to default to monthly gifts by adding some Javascript that disabled one-time gifts and only allowed monthly gifts. The issue with this is that it removed the toggle between one-time and monthly gifts, but I was able to add in a link to a URL to take people back to the one-time gift form.


    Thank you!

    Andrew

Categories