How to create a button that automatically fills in a section in a widget on another page?

Question:
I am trying to create a page that has multiple clickable buttons that will, when clicked, automatically fill in the ‘other amount’ option on a GiveButter widget that is embedded on another page.
What is the process for getting that information automatically?

Product:
Wix Velo Dev mode

What are you trying to achieve:
The origin page will have a calendar graphic, with hover boxes on each day. Each day, when hovered over, will bring up a list of people who have claimed that day, and a button that says ‘adopt day’. It is this button that will take the user to another page that has the GiveButter donation widget embedded. I need this button, when clicked, to automatically fill in the ‘other amount’ portion of the GiveButter donation widget.

What have you already tried:

Additional information:
I think my issue is that I don’t have the exact name of the ‘other amount’ option from the GiveButter donation widget. When I look up the code for that widget, it says the id is ‘amountOtherInput’ but when I put that into the receiving page code, it shows an error and says there is no element on the page with that ID.

You cannot code an embedded widget that way. There is no way to manipulate how the widget works unless GiveButter provides an actual API / code to allow you to do so.

The ID doesn’t exist as a Wix element on your page.

ah bummer, thank you so much for the information! I’ll see if they can provide that for me.
Thanks!

1 Like