[Pro] Validate email in Send Form

Can somebody inform me how the Validation works in the new send form action in version 6?

Thanks, Ronald


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

how the Validation works in the new send form action

Select the field that you want to be required and under the 3rd Tab in the inspector there is a ‘required’ check box.

Enabling that uses the error handling in the form processor to send your visitor to the error page.

David


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

I just had a quick tour through the code generated by this Action. It appears to use the same trigger as Tim’s PHP Feedback Form Action, although the internals are considerably different. To validate a field as email, simply use it as the sender address. I don’t see any other way to trigger the filter.

Walter

Can somebody inform me how the Validation works in the new send form action in version 6?

Thanks, Ronald


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

That handles required (and it’s important to note that this only appears in an HTML5 DOCTYPE) but it doesn’t trigger the e-mail format validation (does this string of characters appear to be an e-mail address). I don’t see any way besides using the field as the sending address to trigger that validation.

Walter

On May 30, 2013, at 8:25 AM, DeltaDave wrote:

how the Validation works in the new send form action

Select the field that you want to be required and under the 3rd Tab in the inspector there is a ‘required’ check box.

Enabling that uses the error handling in the form processor to send your visitor to the error page.

David


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

but it doesn’t trigger the e-mail format validation

It appears that whichever field you choose in the action as ‘Use Item for Sender Address’ will be validated as an email address.

D


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

Thanks all. but what do I fill in for the pattern?


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

Yes. Since the Action is so tightly bound to the HTML5 validation extensions, it would make sense for any field that is set as required and is set as an email field (with Type=email) should also be validated for an e-mail-like format. That seems like a good feature to add.

Walter

On May 30, 2013, at 9:48 AM, DeltaDave wrote:

but it doesn’t trigger the e-mail format validation

It appears that whichever field you choose in the action as ‘Use Item for Sender Address’ will be validated as an email address.

D


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

but it doesn’t trigger the e-mail format validation

You don’t - the script handles it for you.

D


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

Whatever I fill in now as email address it will be send, and that is strange


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

Maybe you can see the example

http://www.perpetuabloematelier.nl/perpetuabloema13.html


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

With the email field selected look in the inspector under the 3rd Tab and change the name field to read ‘email’ note it is case sensitive.

And try again.

D


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

It was already like that Dave, so strange


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

It was already like that Dave, so strange

It isn’t in your online version - Email aanvrager

D


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

Strange, really don’t know what I’m doing wrong


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

I don’t think you’re doing anything wrong. Are you choosing the email field as the address to use in the “from” message? If so, then it works here. If you don’t, then I don’t see any way to invoke e-mail checking server-side with this Action. In my opinion, it should work if you have set the field Type to email and checked Required. But it doesn’t. And I can’t get Safari to properly use the HTML5 Pattern attribute to validate the field, either. The way that is supposed to work is if the field doesn’t match the pattern, the form just won’t submit and an :invalid pseudo-class is added to the field, which may be optionally styled with CSS to give it a red border or whatever.

Walter

On May 30, 2013, at 11:39 AM, Ronald Botman wrote:

Strange, really don’t know what I’m doing wrong


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

Thanks Walter. I think all is fine in the fields, it just doesn’t work


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

I think all is fine in the fields, it just doesn’t work

Have you updated the link to your online example - which incidentally appears to be using the PHP Feedback Form action and not the Send Form action.

D


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

The new contact form on the site with the following link is with the Send Form Action.

http://www.perpetuabloematelier.nl/perpetuabloema13.html

The old one is with the PHP Feedback Form action

http://www.perpetuabloematelier.nl/perpetuabloematl.html


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

Both of these pages appear to use the PHPFF action

The perpetuabloematl.html page has it applied as a page action while the perpetuabloema13.html page has it applied to the ContactformulierPerpetua Div

Also both pages/forms do not have the email field named correctly - it should have this - email (lower case)

Can you remove the actions from the perpetuabloema13.html page, publish the page then reapply the SendForm action to the Div that contains the form and republish and upload it again.

D


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

Thanks D, I left the PHP action in the page.

Delete it and change the name from emailsender to just email and it works.


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