I’m trying to insert some JavaScript for restricting the number of checkboxes that can be checked. The syntax for the call is checkboxlimit(document.forms.world.countries, 2). My problem is I see no From ID to reference. Am I missing something in FW or how to I reference a particular form in JavaScript.
Hi Mike,
By default Freeway will create a single form item for each page that
it finds form elements on - although you can use a number of different
actions to add multiple forms to a page. Assuming you are working with
Freeway’s ‘one form per page’ system you can add your form ID by going
to Page/ Form Setup/ Extended Form, clicking on New and entering;
Name: id
Value: world
(this assumes the form name stays the same as the code you’ve provided
below).
If you are using an action to create multiple form items then we’ll
need to look at more devious techniques to get the id in there!
Regards,
Tim.
On 16 Sep 2010, at 23:11, Mike Martina wrote:
I’m trying to insert some JavaScript for restricting the number of
checkboxes that can be checked. The syntax for the call is
checkboxlimit(document.forms.world.countries, 2). My problem is I
see no From ID to reference. Am I missing something in FW or how to
I reference a particular form in JavaScript.