Copy link to clipboard
Copied
I have created Business Directory using Webapp.
Please note....
Copy link to clipboard
Copied
Off the top of my head:
There's definitely different ways to skin this cat, but I cannot think of a reason why this theory shouldn't work.
I hope this is a good starting point.
@webmosphere/@bespokify
Copy link to clipboard
Copied
Hi webmosphere, this is an interesting solution. How would you submit automatically the webapp item on the payment confirmation screen?
Copy link to clipboard
Copied
That's the part that will need experimenting, but as long as you submit the payment form with ajax, you can basically modify the script on this page: Submitting standard web forms with Ajax and JSON ...to fire off additional events on success, or query the {module_webformresults} and then submit the form if certain conditions are met.
You can simply submit the form in jQuery with $('#formName').submit();
Or in vanilla via document.getElementById("formName").submit( );
Last time I checked, you could not submit web app forms with ajax, so keep this in mind.
If you are using Stripe, run some tests - I'm pretty confident what you goal in well within BC capabilities, one way or another.