Skip Navigation

[Resolved] View inside a form doesnt work

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a View inside a Form. When I try to submit the Form, nothing happens. If I remove the View shortcode, the Form works as expected.

Solution: Check the checkbox "Disable the wrapping div around this View". Otherwise, you will have two Forms nested inside one another, which is invalid HTML.

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by temel-tecnicas-deM 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1210758
Captura.PNG

I am trying to:
To submit a form that contains a view inside (The view only shows information).
But when i try to submit it nothing happens, just cant send the form and save the data.

The when I remove the line that contains the view "[wpv-view name="tickets-de-gastos"]" all works again correctly,
I have tried this with other view inside other forms and the same happens.

I also tried to enable the AJAX form submision only to check if something changes but now i receive an error message.

#1210773

Hi, please edit the tickets-de-gastos View and check the checkbox "Disable the wrapping div around this View". Let me know if this does not resolve the problem.

#1211063

Problem solved, Thanks!