SOLVED

Re: Slideshow/Carousel form questions?

Go to solution
kana0_0ng
Level 2

Slideshow/Carousel form questions?

Hello,

 

I got a request from a client that's a bit complicated. They want a form on a LP template to look like this:

kana0_0ng_0-1596744774920.png

I have put regular carousels (background images with text overlay and control buttons) on LP templates before, but is this sort of thing even possible with forms? Slides 1-10 would be one form, but each slide will contain 4 fields.

 

Any ideas would be much appreciated, thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dave_Roberts
Level 10

Re: Slideshow/Carousel form questions?

I've been able to accomplish this by using the FIELDSET wrappers as the "pages" and then adding some custom HTML pagination in a RICH TEXT area. You'll also need a JS layer like Sanford mentioned to handle the pagination. I found it was easiest to check that each field on each "page" that is required was valid before exposing the "NEXT" button. You can use the "disabled" property if you're actually using buttons there and then check after a field is changed (via script) if there are required fields that are not valid, and if not, remove the disabled property from the NEXT button.

View solution in original post

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Slideshow/Carousel form questions?

Possible? Absolutely. It's a variant of the one-field-at-a-time pattern, but it's one-fieldset-at-a-time.

 

Easy? Only if you're experienced w/the ways of the Marketo form DOM, toggling CSS classes using JS, maintaining a li'l state so forward/back buttons work...

Jay_Jiang
Level 10

Re: Slideshow/Carousel form questions?

you may as well as just build the front end how you're used to and submit all info in the end via a hidden marketo form.

SanfordWhiteman
Level 10 - Community Moderator

Re: Slideshow/Carousel form questions?

In theory! But I just saw somebody horribly botch something exactly like this w/a custom form; they would've been better off being able to use Marketo's field validation, built-in assembly of fields (the dev made a pretty form, but didn't know how to interact w/it using JS), and especially Vis Rules.

Dave_Roberts
Level 10

Re: Slideshow/Carousel form questions?

I've been able to accomplish this by using the FIELDSET wrappers as the "pages" and then adding some custom HTML pagination in a RICH TEXT area. You'll also need a JS layer like Sanford mentioned to handle the pagination. I found it was easiest to check that each field on each "page" that is required was valid before exposing the "NEXT" button. You can use the "disabled" property if you're actually using buttons there and then check after a field is changed (via script) if there are required fields that are not valid, and if not, remove the disabled property from the NEXT button.