[Pro] Form

Hello,

I have a problem with use form:
When you use the enter button after filling in an amount in a certain product the order is sent immediately ( provided the two required fields )
Is there a possibility to block this.
So that you should use always the send button .

I hope somebody can help me.

Sorry for my bad English.
Best regards,
Erik

http://www.buva.be/formulier-test.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:

Going from field to field you should use TAB?

David Owen { Freeway Friendly Web hosting and Domains }

http://www.ineedwebhosting.co.uk | http://www.PrintlineAdvertising.co.uk

On 7 Oct 2015, at 13:10, eriks email@hidden wrote:

When you use the enter button after filling in an amount in a certain product the order is sent immediately


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

I know.
But tell that to all the users :slight_smile:

Is there no way to block using the enter key?


freewaytalk mailing list
email@hidden
Update your subscriptions at:

Accessibility says it should be this way…

You’d need Javascript to prevent it…

https://www.cs.tut.fi/~jkorpela/forms/enter.html

David Owen { Freeway Friendly Web hosting and Domains }

http://www.ineedwebhosting.co.uk | http://www.PrintlineAdvertising.co.uk

On 7 Oct 2015, at 14:39, eriks email@hidden wrote:

I know.
But tell that to all the users :slight_smile:

Is there no way to block using the enter key?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Thank you.
But how do that in freeway?


freewaytalk mailing list
email@hidden
Update your subscriptions at:

I haven’t tested this but it should work - even though it goes against accessibility issues.

In Page>Html Markup add the following code in the before section

<script type="text/javascript">
function noenter() {
  return !(window.event && window.event.keyCode == 13); }
</script>

Then select each input field in turn, Choose Item>Extended and under the Tag add the following Name/Value pair

onkeypress / return noenter()

So that it will look like this

You need to do it for Every input field

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:

Hi David,
Thank you very much! It’s works.
I am also of the opinion that it is against the accessible and that users must work with tab key, but my client wants this, so …
Erik


freewaytalk mailing list
email@hidden
Update your subscriptions at:

As far as the Tab issue goes - the Tab key is moving into your navigation items rather than down the form.

Try removing the Send Form action from the Page and instead apply it to the Table item that contains the form.

Did you know that a page with a form on it does NOT have to be a .php page - if you make it .html then you will be able to preview it locally.

The form handler does have to be a .php file but that is written by the SendForm action for you.

Of course if you are using WebYep (or similar) on the page it will need to be a .php page.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:

On 7 Oct 2015, 10:09 pm, DeltaDave wrote:

As far as the Tab issue goes - the Tab key is moving into your navigation items rather than down the form.

Try removing the Send Form action from the Page and instead apply it to the Table item that contains the form.

Thank you very much for the respons, but:
I did this first but if I do that i get always a new file on the server , i have a total of 22 forms, which means that the server quickly become full when ever upload to testing etc …


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

On 7 Oct 2015, 7:50 pm, eriks wrote:

Hi David,
Thank you very much! It’s works.
I am also of the opinion that it is against the accessible and that users must work with tab key, but my client wants this, so …
Erik

have been too easily satisfied, working with Safari and Internet Explorer but not in Firefox


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

I did this first but if I do that i get always a new file on the server , i have a total of 22 forms, which means that the server quickly become full

Hardly full as the sendform handler file is only a few Kb. But I know what you mean. Best way to deal with it is to go into the FW generated Site folder and delete all of the sendform_file1.php, sendform_file2.php files and then re-upload and a fresh one will be created and the others on the server will be deleted.

I have put the Tab Order action on my server so get it from http://www.deltadesign.co/downloads/Tab%20Order.fwaction.zip if you want to go down that route.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

On 7 Oct 2015, 7:50 pm, eriks wrote:

Hi David,
Thank you very much! It’s works.
I am also of the opinion that it is against the accessible and that users must work with tab key, but my client wants this, so …
Erik

My all-time (and déjà vu) comment to this:

If your client tells you what to do, what’s your job then?

We are talking about “common use and expectations” or even standards (sometimes) and not single or unique sensitivities. You’re hired for figuring this out. This is making a web developer a craftsman and part of a service industry. Your client doesn’t know about this? Tell him - and tell him that design is a job with many disciplines included (the work in Freeway or other editors is ideally about 20% of it).

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options