Form Properties AutoFocus Issue -...

User 2836110 Photo


Registered User
109 posts

I have noticed in Form Properties than not all Elements are listed in the AUTOFOCUS drop down list.
My Drop Down boxes seem to be missing.
Anybody know why this is ?? Or is this by design.
User 2699991 Photo


Registered User
4,782 posts

Lou Mitsy wrote:
I have noticed in Form Properties than not all Elements are listed in the AUTOFOCUS drop down list.
My Drop Down boxes seem to be missing.
Anybody know why this is ?? Or is this by design.


One assumes that is by design in order to give a user a better experience,, as in the use of the "tab' for completing more important fields first rather than having to jump back and forth.
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 2699991 Photo


Registered User
4,782 posts

Although I also can see that sometimes having the ability to set autofocus set on something like a dropdown (say for a subject matter) would be useful.
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 2836110 Photo


Registered User
109 posts

Thanks Wayan,

My first item on my form is the User Name in a Drop Down so it would have been great to AUTOFOCUS to that position.
User 2699991 Photo


Registered User
4,782 posts

hmm so why not in a plain good old Text field? easy to set that as autofocus,,
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 2836110 Photo


Registered User
109 posts

There are 13 Users that will use the form daily so the Drop down was the easier option.
I have currently set it to the DATE Field which is the uppermost field but it would have been nicer to AutoFocus on the User Name.
User 2836110 Photo


Registered User
109 posts

I just tested the Form AUTOFOCUS option which doesn't seem to work on IOS, its fine on an ANDROID.
Anyone else experience this ??
User 2836110 Photo


Registered User
109 posts

After playing around further,
It seems that WFB will not save the AUTO FOCUS Element that i select it always reverts back to the last element on the Form.
Is this a bug maybe ??
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

Adding it to your select after export is one method.
Example:
<select name="username" id="item3_select_1" required data-hint="" autofocus="">

Another option is to add a HTML element to your page and paste this code into it. Adjust the bold part to the name of your select.
<script>function setFocusToSelect(){
document.getElementsByName("username")[0].focus();
}
window.onload = setFocusToSelect;</script>

JS option working here.
https://ericrohloff.com/coffeecup/ccfor … uto-focus/

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2836110 Photo


Registered User
109 posts

Thanks Eric for the workaround,

But is it an issue with WFB ? Or is it something i am not understanding.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.