# How do you set fwRequiresForm?

**URL:** <https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530>\
**Category:** ActionsDev\
**Created:** [January 2, 2009, 6:05pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530 "2009-01-02T18:05:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [January 2, 2009, 6:05pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/1 "2009-01-02T18:05:07Z")

</div>

I’m trying to do a simple fix to Webworker’s problem in the main list.  
The following doesn’t work, and I don’t understand why not. Can anyone  
shed some light on this?

ForceForm 2008 Walter Lee Davis function fwAfterStartBody(){ this.fwRequiresForm = true; }

I’ve tried moving this declaration to different parts of the publish  
timeline, and nothing seems to do the trick. I’ve also tried alerting  
the current value of this property both before and after I set it, and  
it doesn’t change.

Walter

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Joe2](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@Joe2](https://discourse.softpress.com/u/Joe2)\
**Post date:** [January 2, 2009, 6:16pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/2 "2009-01-02T18:16:32Z")

</div>

I think it’s a parameter of the action tag, 1 sec I’ll dig it out of  
another Action.

Joe

On 2 Jan 2009, at 18:05, Walter Lee Davis wrote:

> I’m trying to do a simple fix to Webworker’s problem in the main  
> list. The following doesn’t work, and I don’t understand why not.  
> Can anyone shed some light on this?
> 
> ForceForm 2008 Walter Lee Davis function fwAfterStartBody(){ this.fwRequiresForm = true; }
> 
> I’ve tried moving this declaration to different parts of the publish  
> timeline, and nothing seems to do the trick. I’ve also tried  
> alerting the current value of this property both before and after I  
> set it, and it doesn’t change.
> 
> Walter
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Joe2](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@Joe2](https://discourse.softpress.com/u/Joe2)\
**Post date:** [January 2, 2009, 6:17pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/3 "2009-01-02T18:17:38Z")

</div>

Like this:

```
<item-action name="Multiple Form" generates-form>

```

Joe

On 2 Jan 2009, at 18:16, Joe Billings wrote:

> I think it’s a parameter of the action tag, 1 sec I’ll dig it out of  
> another Action.
> 
> Joe
> 
> On 2 Jan 2009, at 18:05, Walter Lee Davis wrote:
> 
> > I’m trying to do a simple fix to Webworker’s problem in the main  
> > list. The following doesn’t work, and I don’t understand why not.  
> > Can anyone shed some light on this?
> > 
> > ForceForm 2008 Walter Lee Davis function fwAfterStartBody(){ this.fwRequiresForm = true; }
> > 
> > I’ve tried moving this declaration to different parts of the  
> > publish timeline, and nothing seems to do the trick. I’ve also  
> > tried alerting the current value of this property both before and  
> > after I set it, and it doesn’t change.
> > 
> > Walter
> > 
> > * * *
> > 
> > actionsdev mailing list  
> > email@hidden  
> > Update your subscriptions at:  
> > [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [January 2, 2009, 6:23pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/4 "2009-01-02T18:23:13Z")

</div>

I saw that, trouble is I want to do the opposite. I want the action to signal that Freeway should generate a form, regardless of whether or not it believes it needs to. Adding this parameter to the action declaration does not change the outcome.

I tried changing this to requires-form, but while that did get the `alert(this.fwRequiresForm)` to say true rather than false, that didn’t do anything in the way of actually creating the enclosing form. Any other ideas?

Walter

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![MIKEBR\_FW](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MIKEBR\_FW](https://discourse.softpress.com/u/MIKEBR_FW)\
**Post date:** [January 2, 2009, 6:36pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/5 "2009-01-02T18:36:20Z")

</div>

Is this what you are looking for Walter:

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Joe2](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@Joe2](https://discourse.softpress.com/u/Joe2)\
**Post date:** [January 2, 2009, 6:40pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/6 "2009-01-02T18:40:28Z")

</div>

Yeah sorry I just read through the notes, require-form _should be_  
what you’re after but it appears to not work (not in 4 either) unless  
I’m doing something wrong. I think what you’ll need to do is use  
generates-form (which tells Freeway _not_ to generate a form because  
your Action will, and then add your own.

Joe

On 2 Jan 2009, at 18:36, Mike B wrote:

> Is this what you are looking for Walter:
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [January 2, 2009, 6:43pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/7 "2009-01-02T18:43:05Z")

</div>

Tried that, it didn’t do anything. Joe has confirmed that this problem  
extends back to FW4 as well.

Walter

On Jan 2, 2009, at 1:36 PM, Mike B wrote:

> Is this what you are looking for Walter:
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [January 2, 2009, 6:43pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/8 "2009-01-02T18:43:51Z")

</div>

Does an Action have access to the settings from the Form Setup dialog?  
Or do I need to duplicate those in the Actions palette?

Walter

On Jan 2, 2009, at 1:40 PM, Joe Billings wrote:

> I think what you’ll need to do is use generates-form (which tells  
> Freeway _not_ to generate a form because your Action will, and then  
> add your own.

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![MIKEBR\_FW](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MIKEBR\_FW](https://discourse.softpress.com/u/MIKEBR_FW)\
**Post date:** [January 2, 2009, 6:55pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/9 "2009-01-02T18:55:13Z")

</div>

Unless I misunderstand… I use this in an action and it seems to work  
for both FW4 and 5!

On Jan 2, 2009, at 7:43 PM, Walter Lee Davis wrote:

> Tried that, it didn’t do anything. Joe has confirmed that this  
> problem extends back to FW4 as well.
> 
> Walter
> 
> On Jan 2, 2009, at 1:36 PM, Mike B wrote:
> 
> > Is this what you are looking for Walter:
> > 
> > * * *
> > 
> > actionsdev mailing list  
> > email@hidden  
> > Update your subscriptions at:  
> > [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Joe2](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@Joe2](https://discourse.softpress.com/u/Joe2)\
**Post date:** [January 2, 2009, 7:02pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/10 "2009-01-02T19:02:22Z")

</div>

I don’t think you do no. I needed to add all the fields into the  
Action palette for the multiple form suite Action.

Joe

On 2 Jan 2009, at 18:43, Walter Lee Davis wrote:

> Does an Action have access to the settings from the Form Setup  
> dialog? Or do I need to duplicate those in the Actions palette?
> 
> Walter
> 
> On Jan 2, 2009, at 1:40 PM, Joe Billings wrote:
> 
> > I think what you’ll need to do is use generates-form (which tells  
> > Freeway _not_ to generate a form because your Action will, and then  
> > add your own.
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [January 2, 2009, 7:04pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/11 "2009-01-02T19:04:25Z")

</div>

Does the page you apply it to have any form fields drawn anywhere?

What we’re trying to do here is get Freeway to add an enclosing FORM  
tag to a page that it does not believe contains any form fields at  
all. The underlying issue is that if you make a “box model” page by  
double-clicking into the PageDiv, any form elements that are contained  
within that element or any of its children will not cause Freeway to  
generate a form. If you draw an element off-screen somewhere, then all  
is well, but that raises additional issues which are hard to sort  
through without lots of tweaky extended elements.

Walter

On Jan 2, 2009, at 1:55 PM, Mike B wrote:

> Unless I misunderstand… I use this in an action and it seems to  
> work for both FW4 and 5!
> 
> On Jan 2, 2009, at 7:43 PM, Walter Lee Davis wrote:
> 
> > Tried that, it didn’t do anything. Joe has confirmed that this  
> > problem extends back to FW4 as well.
> > 
> > Walter
> > 
> > On Jan 2, 2009, at 1:36 PM, Mike B wrote:
> > 
> > > Is this what you are looking for Walter:
> > > 
> > > * * *
> > > 
> > > actionsdev mailing list  
> > > email@hidden  
> > > Update your subscriptions at:  
> > > [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
> > 
> > * * *
> > 
> > actionsdev mailing list  
> > email@hidden  
> > Update your subscriptions at:  
> > [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![MIKEBR\_FW](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MIKEBR\_FW](https://discourse.softpress.com/u/MIKEBR_FW)\
**Post date:** [January 2, 2009, 7:10pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/12 "2009-01-02T19:10:33Z")

</div>

Ah… ok, I understand, then yes I find it does not set the form tag  
without form fields being drawn.

On Jan 2, 2009, at 8:04 PM, Walter Lee Davis wrote:

> Does the page you apply it to have any form fields drawn anywhere?
> 
> What we’re trying to do here is get Freeway to add an enclosing FORM  
> tag to a page that it does not believe contains any form fields at  
> all. The underlying issue is that if you make a “box model” page by  
> double-clicking into the PageDiv, any form elements that are  
> contained within that element or any of its children will not cause  
> Freeway to generate a form. If you draw an element off-screen  
> somewhere, then all is well, but that raises additional issues which  
> are hard to sort through without lots of tweaky extended elements.
> 
> Walter
> 
> On Jan 2, 2009, at 1:55 PM, Mike B wrote:
> 
> > Unless I misunderstand… I use this in an action and it seems to  
> > work for both FW4 and 5!
> > 
> > On Jan 2, 2009, at 7:43 PM, Walter Lee Davis wrote:
> > 
> > > Tried that, it didn’t do anything. Joe has confirmed that this  
> > > problem extends back to FW4 as well.
> > > 
> > > Walter
> > > 
> > > On Jan 2, 2009, at 1:36 PM, Mike B wrote:
> > > 
> > > > Is this what you are looking for Walter:

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![chuckamuck](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@chuckamuck](https://discourse.softpress.com/u/chuckamuck)\
**Post date:** [January 2, 2009, 10:44pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/13 "2009-01-02T22:44:29Z")

</div>

Will it work if form fields are drawn and then grouped, then inserting the group in-line?

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [January 2, 2009, 11:05pm UTC](https://discourse.softpress.com/t/how-do-you-set-fwrequiresform/3530/14 "2009-01-02T23:05:00Z")

</div>

It seems to ignore any form elements that are inline children of the PageDiv. I tried a couple of different ways, and the only way I could get it to work is if the elements were drawn on the page, rather than inserted inline.

Walter

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
