dijo.dill
dijo.dill

Hi, I would like to know how to send backend form data to the frontend page while clicking create. Thanks in advance.

Last updated

marco.grueter
marco.grueter

Hi! Checkout out the docs here https://octobercms.com/docs/ajax/handlers#returning-data-from-handlers and here https://octobercms.com/docs/plugin/components#ajax-handlers

Basically, you can return ['#containerID' => '[your html markup'] from an Ajax handler and the content of containerID gets updated with your new markup.

dijo.dill
dijo.dill

Hello! Sorry, I think My question is wrong.

I created a plugin using Builder and it's working fine. Now whenever I create a new entry on the backend forms, while clicking create, I would like to open a new page and pass the form values in it.

I tried using formGetRedirectUrl() in the controller but it didn't work.

Last updated

daftspunk
daftspunk

Components are a great way to get backend data to display on the front end. It is a topic covered in the documentation.

1-4 of 4