This topic is locked
[SOLVED]

Help with : Add the code that will submit a form on Enter

11/28/2022 1:50:44 PM
PHPRunner General questions
Dalkeith author

Apologies continue from my earlier thread

I created a table with two fields - index and barcode.

I have built list,add and edit forms for this table

I have attempted to put the following code in the field event..

img alt

Now the browser seems to be recognising when I hit enter...

But its skippingh over the submit line - marked with the arrow..

Any ideas what I am doing wrong?

Dalkeith author 11/28/2022

This is how my form looks

img alt

Dalkeith author 11/29/2022

So the following just worked

Not sure how I identify the name of the savebutton just found a previous thread where this was the name of the button and used that.

img alt

Dalkeith author 11/29/2022

For anyone who needs to know the names of a button that they need to click you can find it through the developers tools in Chrome.. Navigate to the page and then go to the developers tools and then click down through the hierachy until you find what you are looking for - it is well buried.

Apologies if this is obvious to some but I'm fairly new to web development and some of these things seem fairly well buried. The requirement to have a # seems not particularly intuitive either.... which is obviously some kind of javascript standard of some sort...

Also the difference betwee = / == and ===

Within the elements section if you move your cursor the equivalent sections are highlighted in the live web page which is helpful.

img alt

admin 11/29/2022

Congratulations on fiding the solution!

It would be nice if you posted the code that worked, in a way that it can be copy/pasted.