pods::forms via embed facility in post
-
Using pods 2.3.18. I can create a small pods form in php in a pods page by
<?php $mypod = pods( 'user_form' ); // Only show custom fields $fields = array( 'username', 'email' ); echo $mypod->form( $fields, 'goSubmit', 'productions/' ); ?>
and this works exactly as expected. The pod is table stored. A new row is created and it returns to the specified URL.
However the equivalent code using pods embed in a post produces
[pods name="user_form" form="1" fields="username, email" thank-you="productions/"]
works ok except that the URL is not honoured, the standard success message is output and the form repeats ad infinitum. each time creating a row in the table.
Is this a bug or am I misusing the embed facility?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘pods::forms via embed facility in post’ is closed to new replies.