Problem with form code validation causing issues with some browsers

By: stefano rigazio | Asked: 10/07/2025
ForumsCategory: General questionsProblem with form code validation causing issues with some browsers
stefano rigazio asked 1 month ago

If you go here:

Rischio amianto e FAV

but it happens on all pages where there is an accordion, there is a problem on mobile devices with Android and the Chrome browser, but also on Windows with Edge, for example, and the problem can be seen here: https://imgur.com/a/loInYru

As you can see, after clicking on the accordion element, the browser moves upwards.

I opened a ticket with my template provider, which you can see here: https://yootheme.com/support/question/171738#answer-558214

and they say there is a validation error in the formidable form code: https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Fsafetyitalia.it%2Frischio-amianto%2F#l1559

the problem is this code:

</div>↩</p></div>

and then they say:

that the docie is this:

<div id="frm_field_7_container"

....

“event”: “formidable_form_submitted”,↩

“formID”: formID,↩

“firstname”: name,↩

'lastname': surname,↩

“email”: email,↩

“phone”: telephone,↩

“city” : city↩

});↩

console.log(“Event sent to dataLayer:”, { formID, surname, first name });↩

});↩

});↩

</script></div>↩

</fieldset>↩

</div>↩

</form>↩

</div>↩

</p></div>↩

Can you help me?

1 Answers
Victor Font Staff answered 1 month ago

The </p></div>↩ that's flagged in red in the validator is not Formidable's code. Formidable's code ends with the closing form tag. That code is coming from your theme or custom HTML in your post.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right