# \[Pro\] PHP feedback form action help

**URL:** <https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449>\
**Category:** Freeway\
**Created:** [October 27, 2012, 11:29pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449 "2012-10-27T23:29:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 27, 2012, 11:29pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/1 "2012-10-27T23:29:51Z")

</div>

Hi,

I have a contact from that uses the PHP feedback form action perfectly and without problems.

I have it direct to a thank you page when complete and an error page IF they leave something blank.

Problem is…

I duplicated all this to make another type of form, but this 2nd one is much simpler.  
Just a place to fill in name (like 1st one) and Yes and No radio buttons.

My problem is, if they leave the name BLANK or do not hit radio button, the success page still shows, I am not sure how I made the first contact form work so well so that if they left something blank and error occurred.

Thanks for any help.

Can send link if needed.

Barry

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 27, 2012, 11:31pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/2 "2012-10-27T23:31:25Z")

</div>

i guess my simple question is… how do I make them REQUIRED fields?

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 27, 2012, 11:46pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/3 "2012-10-27T23:46:06Z")

</div>

We’ll I think I know the answer.

In my original contact form the name and message is NOT REALLY REQUIRED. I just told the visitor it was. The only thing that will get the error page to appear is if they leave out their email address.

This stinks.

I wonder if I can pretend the name field IS the email address to trick it?

Barry

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 27, 2012, 11:49pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/4 "2012-10-27T23:49:11Z")

</div>

no, that did not work.

The email box had to be in the special form for an email address.

I thought I had it!

* * *

freewaytalk 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:** [October 27, 2012, 11:58pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/5 "2012-10-27T23:58:37Z")

</div>

Check to make sure that the Name field is named (in the third tab of the inspector) name. That’s in the Name field on the third tab from the left when the name field is selected in Freeway (handles showing). It has to be name, it has to be lower-case, and then I believe it becomes required.

Walter

On Oct 27, 2012, at 7:49 PM, Barry Hoffman wrote:

> no, that did not work.
> 
> The email box had to be in the special form for an email address.
> 
> I thought I had it!
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 28, 2012, 12:04am UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/6 "2012-10-28T00:04:07Z")

</div>

yea it was typed as (name) Walt. I think I have determined it only works for the email field.

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 28, 2012, 1:09am UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/7 "2012-10-28T01:09:22Z")

</div>

Post a link to your online form Barry and we will have a look.

David

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 28, 2012, 1:12am UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/8 "2012-10-28T01:12:02Z")

</div>

the “requireds” are fake for now

[http://hoffkids.com/howamidoingform.html](http://hoffkids.com/howamidoingform.html)

thanks

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 28, 2012, 1:12am UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/9 "2012-10-28T01:12:12Z")

</div>

Also have a look at the Validation Form Suite of actions that allows you to make any Field a Required field.

[http://actionsforge.com/projects/view/73-validate-form-suite](http://actionsforge.com/projects/view/73-validate-form-suite)

D

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 28, 2012, 1:20am UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/10 "2012-10-28T01:20:04Z")

</div>

You are also going to have to make your Radio buttons into a Cluster

They need to have the same value under the 3rd Tab in the inspector in the Name field in order to work correctly.

ie only one of a pair should be selectable - at the moment you can choose both of yours.

Yours are called ‘YES my first time’ and ‘NOT my first time’ they should probably be called ‘First Time’ with Values of Yes and No whereas yours have Values of value=“item32” and value=“item 35”

D

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 28, 2012, 1:24am UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/11 "2012-10-28T01:24:24Z")

</div>

Like this

D

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 28, 2012, 7:44pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/12 "2012-10-28T19:44:50Z")

</div>

PERFECT\_ that is what I needed to do!!

Can a name include a question mark without a problem?

want to have

First Time?

* * *

freewaytalk 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:** [October 28, 2012, 8:21pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/13 "2012-10-28T20:21:17Z")

</div>

The name of the field cannot contain anything other than lower-case a-z letters or the underscore for the first character, and a-z, 0-9, or \_ for all following letters. No spaces, or punctuation except the underscore.

Walter

On Oct 28, 2012, at 3:44 PM, Barry Hoffman wrote:

> Can a name include a question mark without a problem?

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 28, 2012, 8:26pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/14 "2012-10-28T20:26:40Z")

</div>

> Can a name include a question mark without a problem?

Remember that the Name part is what is sent to you alongside the Value ie

First\_Time: Yes

And is not visible to the person filling it in. So there isn’t any reason to have a ? as you will know what it means anyway.

D

* * *

freewaytalk 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:** [October 28, 2012, 8:34pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/15 "2012-10-28T20:34:33Z")

</div>

I forgot to mention – the Label (visible to the user) is not sent along with the form, and can contain anything you like. For the Name of the form, it is vitally important that you follow the rules of form building if you want it to work at all.

Walter

On Oct 28, 2012, at 4:26 PM, DeltaDave wrote:

> > Can a name include a question mark without a problem?
> 
> Remember that the Name part is what is sent to you alongside the Value ie
> 
> First\_Time: Yes
> 
> And is not visible to the person filling it in. So there isn’t any reason to have a ? as you will know what it means anyway.
> 
> D
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 28, 2012, 8:43pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/16 "2012-10-28T20:43:02Z")

</div>

got it guys.

brilliant!!!

dave can you test???

[http://hoffkids.com/howamidoingform.html](http://hoffkids.com/howamidoingform.html)

thanks

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 28, 2012, 8:57pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/17 "2012-10-28T20:57:03Z")

</div>

Yes - but I assume that you haven’t used the Validate action on it yet.

D

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 28, 2012, 9:18pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/18 "2012-10-28T21:18:50Z")

</div>

i tried it and it only worked on the name field. It worked perfectly though. However I thought "why do I need another action running? who is going to NOT put their name? "

the 3 kids that used it already all put their names and I am sure that 100% of all serious users will not miss that first prompt

:-))

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 28, 2012, 10:24pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/19 "2012-10-28T22:24:48Z")

</div>

> who is going to NOT put their name?

People that want to annoy you or spam you. Of course the serious users will - its the not serious you want to avoid.

Have you enabled the Spam Trap option in the Advanced Options section?

D

* * *

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

---

<div class="post-metadata">

**Author:** ![Barry\_Hoffman](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/5f8ce5/32.png) [@Barry\_Hoffman](https://discourse.softpress.com/u/Barry_Hoffman)\
**Post date:** [October 28, 2012, 10:26pm UTC](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449/20 "2012-10-28T22:26:38Z")

</div>

they can always put a fake word or name so that is why it really doesn’t stop people, to me it is more about if they skip something and i do not think they will here.

yes- put spam trap on.

* * *

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

[Next page](https://discourse.softpress.com/t/pro-php-feedback-form-action-help/15449.md?page=2)
