jformer icon indicating copy to clipboard operation
jformer copied to clipboard

jformer ajax form

Open set321go opened this issue 13 years ago • 1 comments

hello,

I couldnt find a forum page so i have raised my question as an issue.

I would like to make a form using jformer that is loaded from an ajax request but all of your examples are using html with embedded php. Could you give me an example or a quick explanation of how i could build a json response that i could use to construct the form on the client side, it would be for something basic like a contact form.

thanks Alex

set321go avatar Oct 16 '11 15:10 set321go

The form is generated from the PHP itself , I dont believe it has the current capability to generate the form from a json string client side, although that might be a neat feature.

The basic reasoning for its current setup seems to be you define the form once in PHP, from there client side JS, and server side PHP validations can be applied automatically . Generating the form client side from a JSON string, while its somethign that could be added, you would still need the server side validations so you would still need some PHP code.

detain avatar May 08 '14 18:05 detain