[Pro] Form ID

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.

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You can either add the ID through the form setup dialog (using the extended dialog), or use this syntax instead:

document.forms[0]

That expression evaluates to a reference to the first form on the page, and in Freeway, that’s usually the only form pm the page.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter I’ll give that a try.

Mike


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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! :wink:
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.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Doh! Just saw Walter’s reply to your question. Apologies for my double
reply.
Regards,
Tim.

On 17 Sep 2010, at 04:55, Mike Martina wrote:

Thanks Walter I’ll give that a try.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options