Jump to content

FormBuilder Pages Edit


huseyin
 Share

Recommended Posts

Hmm, maybe try to explain better. Formbuilder is not used for creating pages, it is used for creating forms and saving input in meaningful manner to PW. You can just insert created form with formbuilder to any template on frontend, it is not connected to creating pages and templates as far as I know. 

Link to comment
Share on other sites

I know the "Submit a site" form on the PW Showcase site is creted with formbuilder.

By submitting the form it save the data as a PW page. So it creates a page.

What i want to know is;

Assume i have created page like showcase page at the above example.

Can i use the formbuilder to let someone edit this pages data (like address change, phone number change etc)...

1- if this page was created by formbuilder.

2- if this page was NOT created by formbuilder.

Link to comment
Share on other sites

Officially, the Formbuilder module cannot edit pages.

But there are already discussions in the internal forum about how to implement it (hooks etc. - but not OOTB!), but i never tested this Addons and i dont know if this addons work!

Link to comment
Share on other sites

2 hours ago, zoeck said:

Officially, the Formbuilder module cannot edit pages.

But there are already discussions in the internal forum about how to implement it (hooks etc. - but not OOTB!), but i never tested this Addons and i dont know if this addons work!

Thank you.

This is clear answer.

Link to comment
Share on other sites

I tested the following and works, but I never used it in production: If you render your form in the template using the Custom Embed method (Option C), you can pass the page information as an array to the same form using the render method (https://processwire.com/api/ref/form-builder/render/) to pre-populated the values (field names and array names must match). When the form is submitted, you update the page related. For this, you need to implement a mechanism to know when the form is in ADD mode or EDIT mode, maybe using urlSegments, or a hidden field in the form, or different template for each action.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...