#newb1

1 messages · Page 1 of 1 (latest)

brave crownBOT
hollow maple
#

This sounds very specific to your integration -- I'm not sure what you mean by multi-page form exactly, but you can control when the element is mounted in your code, based on appropriate events for your form system

pure lynx
#

multipage form is like tabs, first tab is, say, first and last name, hit next, next page is email and phone, hit next, etc.

#

technically it's all loaded simultaneously, the pages thing is just a flashy gui

#

like a one page website

hollow maple
#

Can you explain what you mean by focus not working?

pure lynx
#

yes i imagine i could tie the mount to a page id but not sure how yet

#

autofocus

hollow maple
pure lynx
#

yes

#

won't work on a multipage form because it's blurred by design (not the first element)

#

*field

hollow maple
#

What would you expect to happen with focus for an element that is not visible?

pure lynx
#

exactly, that's why i need it to mount when its page is loaded, not when the form is loaded

#

but you're correct it's somewhat specific to the integration

#

just didn't know if there was already a "delay" code for mounting the element

#

you know, like below the fold, lazy load, etc

pure lynx
hollow maple
#

I think you'll need to make sure you defer that focus call until after the element is mounted/visible

pure lynx
#

right, that's what i can't figure out how to do

#

better to think of it without the form, just a conditional load