Hi Rick,
Jazzy Forms, at the time of writing (v0.11), does not do the following:
1) text substitution in a post or page outside the form
2) page reload or generic form submission (HTTP post).
(The latter is planned to be added in near future)
But it DOES do what seems to be your main goal: dynamic text substitution.
Within the form you can add a text or HTML element. There you can use placeholders that are instantly updated with values from the form.
E.g.
Hello. You've chosen {{apples}} Apples
The placeholder {{apples}} will be substituted by the value of an element with ID set to apples.
I hope this solves your problem.
Thanks very much jazzigor for your response. I need to clarify, to make sure I understand.
You said:
Within the form you can add a text or HTML element. There you can use placeholders that are instantly updated with values from the form.
I have the form in a sidebar, but need the placeholder in the page content in the middle. I don’t need a page post or page reload if I can do it otherwise — in fact, that would be preferable. From your description, I don’t think my case will work.
I am trying to pass the form values to another page via an iframe element. I’ve already figured out how to do the iframe with hard-coded parameter values, but I need now to make them based on user input. Here’s a simplified example:
<iframe src=”http://www.domain.com?parm1={{formvalue1}}&parm2={{formvalue2}}”></iframe>
I’m also trying to get around WP’s annoying habit of translating special characters to the html coding equivalent, i.e. the ampersand (&) being changed to & or to &
The approach I’ve tried up to this point is to use javascript to insert the field value into the iframe, but I’m getting an error that the (form field) is undefined — timing error?
I really like this plugin, and hope I can use it.
Rick.
Oops. The code values didn’t come through.
In backticks the two ampersand codes are: & and &
OK that didn’t work either. Sorry for the mistakes.
Here they are with spaces between the characters:
& a m p ;
& # 3 8 ;
Rick, I can’t comment on your attempts to use own Javascript code on top of Jazzy Forms. This plugin is rather a way to avoid coding altogether.
At the time of writing, forms that are distributed between post/page and sidebar are not supported. I have received similar requests earlier, but they seem to represent corner cases.
Your question made me wonder, whether dynamically generated iFrames would work with Jazzy Forms. I’ve never tried it before, so I set up a little test form and it worked.
The HTML element used in this example is: <iframe src="http://{{url}}"></iframe>
OK, I give up… To make everything work right, I had to move the form into the main content block and put the iframe in the form. I would prefer the form to be off in the sidebar, but it’s a compromise I’m willing to make.
The Plugin is very nice, and I commend jazzigor for his good work.
To make it work the way I would prefer, I would need support for putting forms in widgets, and the ability to put place markers outside of the form in the main content block. I totally understand why these are items for your list, if they every make it there.
Thanks much for your help.
Rick.