stripe focus not working on multipage form

Home Forums Quform WordPress stripe focus not working on multipage form

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35107
    joeblow44444444
    Participant

    hi again, issue is that on a multipage form, the stripe object can not autofocus on the card element field unless it is on the first page. is there a way to make the stripe object load only when its page is loaded so that it can successfully autofocus?

    relevant code from quform stripe instruction:

    var card = elements.create('card', {style: style});
            card.mount($cardElement[0]);

    adding post mount autofocus per stripe docs, works only if stripe is the first page of the form:

    var card = elements.create('card', {style: style});
            card.mount($cardElement[0]);
    card.on('ready', function(event) {
    	card.focus()
    });

    how to load the stripe element only when its page id is loaded, and not when the form is loaded?

    #35110
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #35117
    joeblow44444444
    Participant

    this worked, thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy