[Pro] Forms To Go <form> tags

I am probably just having a thick moment so no doubt this is easy for you guys to answer for me.

I have opted to have a go with Forms To Go. I have watched Dans Video on the Bebosoft site and thought i had it all sorted. When i drop or load my page into Forms To Go there are no form tags!

I have created a form by adding all the form elements as i usually do. The difference this time is i usually just add the PHP feedback form and all is well. All the form items are within a single html item.

I have not added any other form actions to the page - other than the tip from Walter in a previous post about how to add the item upload button via form setup → extend - as i did not want any ‘issues’ having two form handlers.
How do i identify the html item on my freeway page as a form!

Many thanks

Alan


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

How do i identify the html item on my freeway page as a form!

I dont think you do - do you not identify the individual form elements as part of the overall form.

If you have given each form element a meaningful name this should be straightforward.

David


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

That’s what i thought should happen, but when i drop the page into forms to go, it doesn’t pick up the form elements?

They all have their own snazzy names, but don’t appear in forms to go?

I’ll take another look. Perhaps that last cup of tea was the missing link!

Thanks for your input Dave.


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

Just remembered that at the top of the page i have a cart total being fed in from mals-e commerce.

I have removed it and now when i drop the html file into Forms To Go it sees it.

So my new question is, is it possible to have the 2 form ‘elements’ [probably a more techie term for that but you get my gist] on the same page and have forms to go play nicely with the one i want?

Thanks

Al…


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

I am not a FTG user but ran one of my forms through it before replying to your OP.

The result for me was a process that took far longer than does using the PHPFF action. That in part is due to my inexperience with FTG but I can’t help feeling that there is no great need to step outside FW to do this.

OK - if you are integrating an upload facility I can see the benefit but FTG does not allow you to stop anybody uploading dodgy files to your server. Does it?

For that reason I use an upload script Upload Plus, uploads made easy. File uploader with user commands on some sites.

D


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

Cross posting there…

What about including your cart total in an iFrame? FTG might ignore it then.

D


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

Or alternatively create the FTG script before adding the cart stuff.

D


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

I like the latter idea so i will give it a go.

The reason i opted for forms to go was that i needed to be able to allow visitors to upload an image which was then emailed to the recipient of the form. Not sure if PHPFF can do that, but i did read the FTG can!

The form will be within a secure members only area - as secure as anything is on the net - and the email is sent to a mac running anti virus software which scans incoming emails.

The client wanted to receive these images and it was the best workaround i could come up with.

Thanks for your help

Alan…


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

Hi Alan

You could use the multi-form action (think it’s called that) from the actionsforge. Apply it to a div surrounding your form fields and submit button.

Regarding forms to go, delete all but one form from the page create the Formstogo script. Then you can post your form (or one of them) to that script URL after the page and forms are added back in.

Hope that makes sense.

David

On 11 Jun 2011, at 12:36, “Alan Herbert” email@hidden wrote:

Just remembered that at the top of the page i have a cart total being fed in from mals-e commerce.

I have removed it and now when i drop the html file into Forms To Go it sees it.

So my new question is, is it possible to have the 2 form ‘elements’ [probably a more techie term for that but you get my gist] on the same page and have forms to go play nicely with the one i want?

Thanks

Al…


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


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

Hi David.

Think i have that. Just having some issues with the image upload at the moment.
I will keep you all posted on my imminent success. Well, i have to think positively right!

Alan…


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

Just an update!

It’s all working fine now. Thank you both for your help.

Alan…


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

So what was your final method - for those that may have a similar problem in the future.

D


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

In this kinds of situations I end up using:

http://actionsforge.com/actions/view/35-tagwrap

“Tag Wrap” and end up just writing out the code myself. Not necessarily the best method, but it works. Plus I’m sure that multiple form action would work too. I too would be interested in hearing how you fixed it.


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

If you have more than one form on the same page, you MUST use Multiple
Form Action. Otherwise, you will end up with nested forms:

form action="foo" method="post" <- Freeway makes this
	input name="name"
	input name="rank"
	input name="serial_number"

	form action="bar" method="post" <- you add this
		input name="total"
		input type="submit"
	/form
	
	input name="favorite_color"
	input type="submit"
/form

By itself, Freeway won’t allow you to add a second form to the page
that will be outside of the one-and-only form created with the Form
Setup dialog. If you look at the outline above, you’ll see that there
are two submit buttons, which is at best ambiguous from the server’s
point of view. If you press the inner submit button, which form is
being submitted? If you press the outer (last on the page) submit
button, which fields will be sent to the server? It’s also invalid
HTML, but that’s beside the point – the standards exist not as a goal
in themselves, but as a means of making your intention as a designer/
programmer clear to the dumb machines.

If you use the Multiple Forms Action, you will get rid of the outer
form, and will end up with two separate-but-equal forms on the same
page. Press the submit button in one or the other, and all will be well.

I think that if you’re using the Mals stuff at all, and you expect it
to work clearly and predictably, you should either iframe it into the
page (an excellent suggestion) or use Multiple Forms. Under no
circumstances should you remove it from the page, generate the FTG
handler, and then put it back. That is a sure recipe for disaster, IMO.

Walter

On Jun 11, 2011, at 12:56 PM, Dan J wrote:

In this kinds of situations I end up using:

TagWrap - ActionsForge

“Tag Wrap” and end up just writing out the code myself. Not
necessarily the best method, but it works. Plus I’m sure that
multiple form action would work too. I too would be interested in
hearing how you fixed it.


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


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

I went for your first option which was to remove the mals-e commerce form item, load the page into FTG, generate the script then replace the mals form.

I tried it the other way with the multiple form action which separated the 2 forms nicely, but that action requires other info and presented me with 2 fields that needed filling in, one of which was Action.

I wasn’t sure what to put in those boxes as i didn’t want to confuse the form - or myself - so i stuck with the method of adding the second form back in afterwards.

Thanks and i hope this may be of some help to others in the future.

There are various other things to set in FTG and if anyone wants to add an upload file facility to their site, but have the file emailed to them rather than placed on the server. It makes it easier if your clients want to receive the upload but cant, or don’t want to access the server. You must go to settings → file uploads → attach to email to make sure it gets placed into the email the form sends.

I used Walters tip on applying the Extend Feature in Form Setup to a text field to create the upload button. I don’t know if there are other methods, but that was the one i found when searching Freeway Talk and it worked a dream.
Draw or insert Form Text Field → whilst that is selected ->go to Page → form setup → extend → new ->name = enctype → Value = multipart/form-data → OK
I’m not sure if the item name is crucial but i stuck with ‘userfile’ as Walt recommended.

Job done.

Thanks again for all your help guys

Alan…


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

Action, in Form lingo, means the URL of the form handler script. When
you press the submit button or otherwise submit the form, the browser
will send a request to the URL you have set up in the Action field,
and that request will include the values of all of the form elements
contained within the current form. Please read and digest my other
message on this topic – you are lucky if it works for you the way you
describe setting it up. Not all browsers are as nice and helpful as
Safari. Try it in Firefox. Or maybe IE6/Windows XPn for a serious
browser-smacking.

Walter

On Jun 11, 2011, at 1:16 PM, Alan Herbert wrote:

presented me with 2 fields that needed filling in, one of which was
Action.

I wasn’t sure what to put in those boxes as i didn’t want to confuse
the form - or myself - so i stuck with the method of adding the
second form back in afterwards.


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

OK, so our posts just crossed.
The other ‘form’ on the page has no submit button. It returns the value of goods in the shopping cart - That’s it!

Will i still need the multiple forms method as it appears to be working fine at the moment?

Your advice is appreciated.

Alan…


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

Walter said:

Under no circumstances should you remove it from the page, generate the FTG handler, and then put it back.

Thats my wrist slapped then!

But like Alan I did consider that the Mal’s stuff wasn’t a form in the true sense of the word as it only posted cart info without any sort of submission method so reckoned it could be ignored.

At least I did offer the iFrame method as a solution and I have learned (like others here probably) a bit more about the whole Form situation within FW.

Thanks Walter for your elucidation.

D


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

I would recommend it. “Working” is a highly flexible definition, and
very sensitive to local conditions. You are testing it with a Mac,
using a very modern browser. Not all of your customers will be so
lucky. Paste the URL of the page into the form here: http://validator.w3.org
and submit. See the mile-long list of errors? Once you fix those
errors (by un-nesting the forms) and your page is “green”, that still
won’t stop a browser from screwing it up somewhere, but it will be a
lot harder for those edge cases to happen, and you will sleep better
at night.

Walter

On Jun 11, 2011, at 1:23 PM, Alan Herbert wrote:

OK, so our posts just crossed.
The other ‘form’ on the page has no submit button. It returns the
value of goods in the shopping cart - That’s it!

Will i still need the multiple forms method as it appears to be
working fine at the moment?

Your advice is appreciated.

Alan…


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


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

I have pasted it into the validator page and it returns an error saying i have an extra /p> that shouldn’t be there!

I will look into it again tomorrow as if I stay in my office any longer today the extra p tag will be the last of my worries.

Thanks for all your help so far.

Alan…


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