Way to use variable from form published in article?

Status
Not open for further replies.

redant

Member
Hi

I have published a form in an article. I need to use the input from 2 dropdown fields in that form to populate 2 variables in a plugin short code on the same form, prfereably using ajax so that the plugin is updated as the user makes a selection from the dropdowns.

Can this be done?

Thanks
 
Probably.

Here's an example where someone else on the forums is using a 'calc' element to generate a plotalot graph using element data.

Code:
$year ='{mac9k_filters___school_year}';
$myString = '{plotalot id="21" P1="' . $year . '"}';
FabrikHelperHTML::runContentPlugins($myString);
return $myString;

If you enable "AJAX calc", the calc element should automatically re-calculate when you change any element on the form which are used as {table___element} placeholders in your calc code.

-- hugh
 
Thanks, Hugh

Exactly what I required. Each new challenge I encounter in building this site has so far been addressed by a plugin. The bigger challenge it seems is knowing what plugins are available!

For others looking for similar functionality - check out these two helpful youtube video tuts I found in which Pawe? Wo?ny explains the basics:
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top