Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Freeform duplicating the attributes on my form? #1768

Open
jaspertandy opened this issue Jan 30, 2025 · 0 comments
Open

Is Freeform duplicating the attributes on my form? #1768

jaspertandy opened this issue Jan 30, 2025 · 0 comments

Comments

@jaspertandy
Copy link

What happened?

I have a multi-step form which I have attached some custom attributes to. The form tag looks like this:

<form columnclass="form__field" class="form" errorclass="form__error" method="post" novalidate="" data-freeform="" data-id="0f6ea3-form-6257yJYng-N24xwMVda-OvrIwCjGveiqdrh3dhlUMJdVkg89u9Wcx9iOWlSB" data-handle="trainingWorkshop3" data-disable-submit="" data-show-processing-spinner="" data-auto-scroll="" data-show-processing-text="" data-processing-text="Processing..." data-success-message="Form has been submitted successfully!" data-error-message="Sorry, there was an error submitting the form. Please try again." data-scroll-to-anchor="" data-payment-target="form form" data-attendees-selector="form-input-attendees form-input-attendees" data-freeform-flexbox="">

As you may be able to see here, my attributes have duplicated values in them:

data-payment-target="form form" data-attendees-selector="form-input-attendees form-input-attendees"

My config for this form looks like this:

Image

It's almost like every time I submit a step of my form, it stacks another value into these attributes.

Errors and Stack Trace (if available)

How can we reproduce this?

  1. Create a multi-step form in Freeform
  2. attach some attributes to the form in settings
  3. observe as you move through each step, your attribute value will be duplicated

Freeform Edition

Pro

Freeform Version

5.9.3

Craft Version

5.6.3

When did this issue start?

No response

Previous Freeform Version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant