FormAssembli conditional forms publishing

mat 10 Jul, 2008
I made a form using FormAssembly to easily create a "conditional form" (I mean: if I chose an answer, I see a specific question).
I published in in Chronoforms but the triggering function don’t works.
What is the better way to publish in Chrono Forms a FormAssembly form with contitional or calculating functions?
It was better if I wrote the conditional questions in PHP, like in the advanced tutorial?
GreyHead 10 Jul, 2008
Hi Mat,

I don't know anything about FormAssembly and have no idea how the publishing works without actually seeing the form code.

If you create a small test form and send me the code or post it here then I'll take a look.

Bob
mat 10 Jul, 2008
Off course and thanks for your answer.
Here you are the test file. [file name=MydemoformforChronoForm.txt size=4769]http://www.chronoengine.com/images/fbfiles/files/MydemoformforChronoForm.txt[/file]

In my tests, I replaced the
<script type="text/javascript" src="http://app.formassembly.com/wForms/3.0/js/wforms.js"></script>
<script type="text/javascript" src="http://app.formassembly.com/wForms/3.0/js/wforms_custom_validation.js"></script>
<script type="text/javascript" src="http://app.formassembly.com/js/populate_form.js"></script>

area with this block:
<?php
global $mosConfig_live_site;
$folder = $mosConfig_live_site.'/components/com_chronocontact/js/MY-DEMO-FORM';
echo "<script src='$folder/wforms.js' type='text/javascript'></script><br />";
echo "<script src='$folder/wforms_custom_validation.js' type='text/javascript'></script>";
echo "<script src='$folder/localization-it.js' type='text/javascript'></script><br />";
echo "<script src='$folder/populate_form.js' type='text/javascript'></script>";
?>

Putting the 3 JavaScript files in "/components/com_chronocontact/js/MY-DEMO-FORM" folder.

If you need, I can send you a PM with my login and password for the FormAssemby free account.
GreyHead 11 Jul, 2008
Hi Mat,

A first quick reply - I think that $folder may not be evaluated inside single quotes. Does the javascript load OK?

Bob
GreyHead 11 Jul, 2008
Hi Mat,

This appears to work Ok in ChronoForms, you can put all the test file text into the Form HTML box - then remove the two lines with the <form . .> and </form> tags. If you want the reult to redirect to formassembly you'll need to copy their url into the Redirect URL box.

Bob
mat 11 Jul, 2008
Thanks GreyHead, I found that there is a conflict with my template and some other JS: I get an undefined value in mootools (prototype) that make always vievable for all conditions, so I can’t get the triggering.
This topic is locked and no more replies can be posted.