projazzka / jazzy-forms-dev

Jazzy Forms - an online form generator plugin for WordPress. This is the development branch, including code generation and automated testing.
http://www.jazzyforms.com/
7 stars 1 forks source link

Using parameter (constants) in shortcodes (and equations) #107

Open gebauer opened 12 years ago

gebauer commented 12 years ago

Hi,

thanks for your wordpress-plugin it's great. However for me it would be even more helpfull if there were a possibiliy to change certain constants "on-the-fly" without the need of generating a new form all the time. I have around 12 pages, which all show the same form with the same formular (calculation) but they all vary in two constants in that particular equilibration (actually they are all different linear regressions)

So having something like this would be great: Formular "=(inputa + %1) * %2"

which would calcuate Shortcode [jazzy form="FORM_ID" 5 10] => "(inputa + 5) 10" Shortcode [jazzy form="FORM_ID" 1 6] => "(inputa + 1) 6"

Regards, Jan

projazzka commented 12 years ago

Thanks for that idea.

An alternative might be something like [jazzy form="FORM_ID" default_field1="5" default_field2="10"], where a field1 and field2 are (possibly hidden) input fields whose default values are to be overwritten.

That's good as a quick solution. In a bigger picture I'm planning to offer a separation of data values into external data records. Several alternative data records could be assigned to a form (extra screen). In practice these data records can be prices and other characteristics of products you are selling.

gebauer commented 12 years ago

Hi,

your "quick solution" would greatly improve the plugin for me, although I can see the appeal of you "long-term plan". However, being some kind of "part-time" coder, I do know that "long-term-goals" are often taking very long - and I perfectly understand the reasons for that ;-)