[Pro] Form Page and content

Hi folks,

Firstly, MASSIVE thanks for help on my previous topic; I understand you guys are busy so I am really appreciative of your assistance.

I have placed the link above, and it is the form page of my website. I have also made a ‘success’ and a ‘oops’ page, but when published, if i place only half of the required info and send the form, it still goes to the ‘success’ page as opposed to the ‘oops’ page.

Is there something I’m missing with regards the action palette?

The success and oops pages are on a 5 second redirect, which works, but I need to ensure that the form follows to the oops page if the form is missing info, either that or something that says ‘required info is missing’

I hope that makes sense, but apologies if its not too coherent as I’m currently on high medication for knee surgery…

I do genuinely hope to learn freeway so someday i can help out as well.

thank you.

Rob.

http://www.kensingtonweddingdvds.co.uk/kensington_contacts.html


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

Hi Rob,
Firstly it is always OK to ask questions as that is the only way that you (or anyone else here) will learn. As they say the only stupid question is the one that doesn’t get asked.

With that said…

You are very close to where you want to be with this form. There are a couple of things that i would change, however;

  1. You currently have text areas in your form (the form items in the right hand column). These are OK and will work but are generally used for larger amounts of textual data. Remove the first two (the name and email fields) and replace them for text fields (Inset > Text Field)

  2. The PHP Freedback Form Action does the bare minimum in the way of validating required fields. Normally I would suggest using the Validate Form Suite of Actions (http://actionsforge.com/projects/view/73-validate-form-suite) but your form is quite simple and we can do it all in the one Action. If you click on the text field for the user’s name and then look in the 3rd tab of the inspector palette you should see that this item is currently called ‘item7’. Rename this as ‘name’ (without the quotes). Repeat this process with the two other fields (‘item6’ and ‘item7’) and name these ‘email’ and ‘comments’ respectively (again remove the single quotes).

Actually the ‘comments’ field can be called anything you like. I just like ‘comments’ :slight_smile:

Now when the user submits the form the PHP code the Action creates will look for anything called ‘name’ and ‘email’ and will redirect the user to the oops page if these values aren’t set. If you want the comments validated as well simply apply the Validate Form Action to the form and use this to give you a ‘belt and braces’ solution.

Good luck with the knee.
Regards,
Tim.


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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

Tim,

Thanks so much! It works perfectly now, just by altering those two little fields.

Really appreciate your assistance.

Rob.


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

Tims points are ones I mentioned in your previous post about Meta tags.

David


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