Is it possible to create a custom action on a public view that passes parameters to a payment form also with public access?
I have a view that's embedded in a webpage.
The view has a custom function on each record. The idea is a visitor on my webpage could find a product they like, click the "Buy" custom action button and a form opens that shows what they are about to purchase. They then click the submit button and it takes them to paypal for payment.
The trouble im having is from a public view i cant seem to get my function to work. Depending on if i tell the custom action to open in a new windows, popup window, same windows or whatever it just doesn't work but all with slightly different problems.
How should i tell the form to open since the view is in an iframe im a little unsure. Popups cause popup blockers to stop everything but the iframe isnt big enough for a paypal form.
Ultimately i think maybe i do not have the function correct so that it will work in a public view.
I have tried several versions of my custom action as below:
I tried this one thinking i needed to use the public form url of the payment form in the custom action but this causes all sorts of strange stuff and does not work.
void Quoting.Stock_request(int SKU,float Retail)
{
}
This also does not work
void Quoting.Stock_request(int SKU,float Retail)
{
openUrl("#Form:Buy_Stock&SKU=" + input.SKU + "&Retail=" + input.Retail + "&Quantity=" + 1, "popup window");
}
Thanks for any help
Matt